On this page

    M

    ffi.exportBuffer

    History
    ffi.exportBuffer(buffer, pointer, length): void
    Attributes
    buffer:Buffer
    pointer:bigint
    length:number

    Copies bytes from a Buffer into native memory.

    length must be at least buffer.length.

    pointer must refer to writable native memory with at least length bytes of available storage. This function does not allocate memory on its own.

    buffer must be a Node.js Buffer.