Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 647 Bytes

File metadata and controls

27 lines (18 loc) · 647 Bytes

ArrayBufferLike

Class Napi::ArrayBufferLike inherits from class Napi::Object.

The Napi::ArrayBufferLike class is the base class for Napi::ArrayBuffer and Napi::SharedArrayBuffer. It adds common array buffer capabilities to both. It is an abstract-only base class.

ByteLength

size_t Napi::ArrayBufferLike::ByteLength() const;

Returns the length of the wrapped data, in bytes.

Data

void* Napi::ArrayBufferLike::Data() const;

Returns a pointer the wrapped data.