liveBook · Manning

Buffer

A buffer is a temporary storage area that holds data or other items while they await processing or transfer.

How 2 Manning books explain it

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.

Read how HTML5 in Action explains buffer →

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.

Read how Systems Programming with Zig explains buffer →

Related concepts

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.