Skip to main content
A Uint8Array is a typed array, a view over data in an underlying ArrayBuffer. To convert it to a DataView, create one over the same range of data.
const arr: Uint8Array = ...
const dv = new DataView(arr.buffer, arr.byteOffset, arr.byteLength);

See Binary Data.