Javascript BigInt64Array byteOffset

Introduction

The Javascript BigInt64Array byteOffset property returns the offset in bytes of a typed array from the start of its ArrayBuffer.

BigInt64Array.byteOffset

The Javascript BigInt64Array byteOffset property is a read only property.

The value is set when a BigInt64Array is created and cannot be changed.

Using the Javascript BigInt64Array byteOffset property

var buffer = new ArrayBuffer(8);

var uint8 = new BigInt64Array(buffer);
console.log(uint8.byteOffset); // 0 (no offset specified)

var uint8 = new BigInt64Array(buffer, 3);
console.log(uint8.byteOffset); // 3 (as specified when constructing BigInt64Array)



PreviousNext

Related