Content-Length: 448702 | pFad | https://bun.com/guides/binary/buffer-to-typedarray

X Convert a Buffer to a Uint8Array - Bun
Skip to main content
The Node.js Buffer class extends Uint8Array, so no conversion is needed. All properties and methods on Uint8Array are available on Buffer.
const buf = Buffer.alloc(64);
buf instanceof Uint8Array; // => true

See Docs > API > Binary Data for complete documentation on manipulating binary data with Bun.








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://bun.com/guides/binary/buffer-to-typedarray

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy