Content-Length: 439172 | pFad | https://bun.com/guides/binary/typedarray-to-dataview

X Convert a Uint8Array to a DataView - Bun
Skip to main content
A Uint8Array is a typed array class, meaning it is a mechanism for viewing data in an underlying ArrayBuffer. The following snippet creates a [DataView] instance over the same range of data as the Uint8Array.
const arr: Uint8Array = ...
const dv = new DataView(arr.buffer, arr.byteOffset, arr.byteLength);

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-dataview

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy