Skip to content

Buffers ​

Bint provides functions to transform/create array buffers. It lets you convert a bint instance to a ArrayBuffer and it also lets you convert a ArrayBuffer to a bint instance.

Converting bint instances to ArrayBuffers ​

To convert bint instances to ArrayBuffers, you use the .toBuffer() method in a bint instance.

Example ​

Recommended to test it in your browser. The test here might not work properly
Console
No logs yet.

Converting Array buffers to bint instances ​

To convert array buffers to bint instances, you must use the bint.fromBuffer function.

Example ​

Recommended to test it in your browser. The test here might not work properly
Console
No logs yet.