IT lexicon › Programming › Buffer

Buffer

Programming På svenska → Updated: 2026-05-25

Allocated memory region for binary data. Used for I/O, network packets, image pixels, audio samples. The term refers to both the data structure and the function (to buffer = accumulate data temporarily).

JavaScript: ArrayBuffer (raw bytes), Uint8Array (typed view), Buffer (Node.js-specific). C/C++: char buf[1024]. Java: ByteBuffer. Buffer overflows = classic security hole (writing past allocated size). In streaming contexts: buffer between producer + consumer to smooth out speed variations. Ring buffers (circular) are efficient for continuous data flows.

← Back to the lexicon