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

X Convert a Uint8Array to a Buffer - Bun
Skip to main content
The Buffer class extends Uint8Array with a number of additional methods. Use Buffer.from() to create a Buffer instance from a Uint8Array.
const arr: Uint8Array = ...
const buf = Buffer.from(arr);

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/typedarray-to-buffer

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy