TypedArray
An array-like view, such as Uint8Array, that reads and writes numbers of one fixed type in an ArrayBuffer.
In more detail
Uint8Array holds bytes from 0 to 255. Typed arrays survive the structured clone algorithm and are how binary stream chunks arrive.
Related terms
- ArrayBuffer — A standard JavaScript object representing a block of raw binary memory, which you read and write through a typed array or DataView.
- structured clone algorithm — The standard JavaScript algorithm for deep-copying values between threads and into storage, which handles Maps, Sets, Dates, typed arrays and circular references.
- Uint8Array — A typed array whose elements are single bytes, whole numbers from 0 to 255.
- 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.
- endianness — The order in which the bytes of a multi-byte number are stored: most significant first (big-endian) or least significant first (little-endian).
Taught in
- Web Workers: Off-Thread Computation And Structured Clone — Frontend Architecture & Web Platform
- The Fetch API: Streaming Responses, HTTP Caching And Keepalive — Frontend Architecture & Web Platform
- Node.js Process Architecture: Memory & Heap Spaces — Node.js Internals & Backend Services
- Buffer Fundamentals: Slab Allocator & V8 Memory — Node.js Internals & Backend Services
- Binary Data Manipulation: TypedArrays & Endianness — Node.js Internals & Backend Services