Buffer
A buffer is a temporary storage area that holds data or other items while they await processing or transfer.
HTML5 in Action
A buffer is a region of memory used to hold data for processing or transfer.
- How it is used
- Uses buffers to prepare entity data for drawing 3D objects in a WebGL game engine.
- How deep it goes
- Walks through buffer configuration and binding in a draw loop, with entity method calls deferred to the application setup.
- Examples
- Uses Geometry Destroyer entities with shape(), color(), and optional indices() methods.
- What you can do after
- Builds from scratch entity buffers and incorporates their data into a WebGL draw loop.
Systems Programming with Zig
A buffer is a temporary memory area that holds data before it is processed or transferred.
- How it is used
- Uses temporary storage for buffered output, file data, and caller-provided memory across a C interface.
- How deep it goes
- Explains buffer declaration, initialization hazards, output flushing, and fixed-buffer allocation, without detailing allocator internals.
- Examples
- Uses a buffered stdout greeting, whole-file reading, and recipe retrieval into caller-provided memory.
- What you can do after
- Apply buffers using Zig's stdout writer and std.heap.FixedBufferAllocator, handling uninitialized memory and buffer overflow.
Related concepts
- ring bufferincludes · A ring buffer is a fixed-capacity storage structure whose positions are reused cyclically as elements are added and removed.
- asynchronous bufferincludes · An asynchronous buffer is a storage structure filled or drained by computation running independently of its consumer or producer.
Questions about buffer
What is buffer?
A buffer is a temporary storage area that holds data or other items while they await processing or transfer.
Which Manning books explain buffer?
HTML5 in Action and Systems Programming with Zig.
What kinds of buffer are there?
Kinds of buffer include ring buffer, TCM buffer, write buffer and asynchronous buffer.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

