Skip to content

- Added null support in DynamicLibrary loading on non-Windows (dlopen(NULL) semantics), plus docs clarifying null is not supported on Windows. #1163

@XavierMP14

Description

@XavierMP14

As promised to @justjake, also the following followups requested in nodejs/node#62072 (comment):

  • Added ffi.exportArrayBuffer(...) and ffi.exportArrayBufferView(...).
  • Added raw pointer helper ffi.getRawPointer(source) (Buffer | ArrayBuffer | ArrayBufferView), with strong “unsafe/dangerous” docs and tests.
  • Moved byte-export copying to native code (exportBytes) to avoid extra JS Buffer wrapper allocations.

Originally posted by @ShogunPanda in nodejs/node#62762

Metadata

Metadata

Assignees

No one assigned

    Labels

    Spam 💩spam or junk issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions