Standard built-ins
TypedArray.prototype.byteOffset
Starting byte offset of the typed view within its backing buffer. An out-of-bounds or detached view reports zero.
Formal Syntax & Structure
javascript syntaxjavascript
view.byteOffsetReturn Value
number
Offset in bytes.
Working Example
Example Snippetjavascript
const a=new Uint16Array(new ArrayBuffer(8),2,2); console.log(a.byteOffset);