DataView

A JavaScript object for reading and writing numbers of different sizes at any position in an ArrayBuffer, with the byte order chosen on every call.

In more detail

Methods such as getUint32(offset, littleEndian) take a Boolean saying whether to read little-endian. That makes DataView the right tool for binary protocol headers with mixed field sizes.

Related terms

Taught in

References