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
.
See Docs > API > Binary Data for complete documentation on manipulating binary data with Bun.