Function nodeBufferToArrayBuffer

  • When using Buffer.from() node is using a buffer from the buffer pool. This makes it necessary to create the a new ArrayType using slice to make a copy.

    This makes a copy.

    Type Parameters

    • K

    Parameters

    • buf: ArrayBuffer | Uint8Array

    Returns ArrayBuffer

Generated using TypeDoc