Dart API Referencedart:htmlArrayBufferView

ArrayBufferView Interface

The ArrayBufferView type describes a particular view on the contents of an ArrayBuffer's data.

Of note is that you may create multiple views into the same buffer, each looking at the buffer's contents starting at a particular offset. This makes it possible to set up views of different data types to read the contents of a buffer based on the types of data at specific offsets into the buffer.

Note: Typically, you'll instantiate one of the subclasses of this object instead of this base class. Those provide access to the data formatted using specific data types.

Subinterfaces

DataView, Float32Array, Float64Array, Int16Array, Int32Array, Int8Array, Uint16Array, Uint32Array, Uint8Array

Fields

Code final ArrayBuffer buffer #

The buffer this view references. Read only.
final ArrayBuffer buffer;

Code final int byteLength #

The length, in bytes, of the view. Read only.
final int byteLength;

Code final int byteOffset #

The offset, in bytes, to the first byte of the view within the ArrayBuffer.
final int byteOffset;

This page includes content from the Mozilla Foundation that is graciously licensed under a Creative Commons: Attribution-Sharealike license. Mozilla has no other association with Dart or dartlang.org. We encourage you to improve the web by contributing to The Mozilla Developer Network.