v0.24.0
- Buffer API support (#13)
- napi_create_buffer
- napi_create_external_buffer
- napi_create_buffer_copy
- napi_is_buffer
- napi_get_buffer_info
emnapi_create_memory_view
(#20)- Fix string decoding (#19)
- Fix init order (#18)
- Change
emnapi_sync_memory
signaturenapi_status emnapi_sync_memory(napi_env env, bool js_to_wasm, napi_value* arraybuffer_or_view, size_t byte_offset, size_t length);
declare function emnapiSyncMemory<T extends ArrayBuffer | ArrayBufferView> ( jsToWasm: boolean, arrayBufferOrView: T, byteOffset?: number, length?: number, ): T
Great thanks to @RReverser