roaring
    Preparing search index...

    Function asBuffer

    • Given some kind of buffer or array buffer, returns a nodejs Buffer instance that contains the same data. The underlying ArrayBuffer is the same.

      Parameters

      • buffer:
            | ArrayBuffer
            | SharedArrayBuffer
            | ArrayBufferView<ArrayBufferLike>
            | Buffer
            | TypedArray

        The source

      Returns Buffer

      A nodejs Buffer instance that contains the same data.