Buffer class extends Uint8Array, so no conversion is needed. All properties and methods on Uint8Array are available on Buffer.
See Docs > API > Binary Data for complete documentation on manipulating binary data with Bun.
Content-Length: 448702 | pFad | https://bun.com/guides/binary/buffer-to-typedarray
XBuffer class extends Uint8Array, so no conversion is needed. All properties and methods on Uint8Array are available on Buffer.
Fetched URL: https://bun.com/guides/binary/buffer-to-typedarray
Alternative Proxies: