ApplesauceOS
Read Markdown ↗Download .md

CPointer.byteLength

Read known managed buffer bounds.

js
pointer.byteLength

Arguments

No arguments.

Returns

Managed buffer length, or null for external pointers.

Example

js
const buffer = C.alloc(4);
console.log(buffer.byteLength);
buffer.release();

Notes

Property, not a function.

All JavaScript APIs · Automation playbook