# 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](https://mcp.applesauceos.com/doc/api.md) · [Automation playbook](https://mcp.applesauceos.com/doc/ai.md)
