# CPointer.readBytes

Copy a bounded managed-buffer range into JS.

```js
pointer.readBytes(length = byteLength, offset = 0)
```

## Arguments

| Argument | Type | Meaning |
| --- | --- | --- |
| `length` | number | Bytes to read; default byteLength. Maximum 65536 per operation. |
| `offset` | number | Starting byte offset; default 0. |

## Returns

Array of byte values.

## Example

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

## Notes

External pointer memory cannot be read with this API.

[All JavaScript APIs](https://mcp.applesauceos.com/doc/api.md) · [Automation playbook](https://mcp.applesauceos.com/doc/ai.md)
