diff options
Diffstat (limited to 'ext/ffi/00_ffi.js')
-rw-r--r-- | ext/ffi/00_ffi.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/ffi/00_ffi.js b/ext/ffi/00_ffi.js index 6957b9418..c9d6d629c 100644 --- a/ext/ffi/00_ffi.js +++ b/ext/ffi/00_ffi.js @@ -45,6 +45,12 @@ this.pointer = pointer; } + getBool(offset = 0) { + return ops.op_ffi_read_bool( + offset ? BigInt(this.pointer) + BigInt(offset) : this.pointer, + ); + } + getUint8(offset = 0) { return ops.op_ffi_read_u8( offset ? BigInt(this.pointer) + BigInt(offset) : this.pointer, |