Skip to main content

toBuffer

Callable


  • Attempts to turn a value into a Buffer. Inputs supported: Buffer, String (hex-prefixed), Number, null/undefined, BigInt and other objects with a toArray() or toBuffer() method.


    Parameters

    Returns Buffer