A Buffer is a chunk of memory, just like you would have it in C/C++. You can interpret this memory as an array of integer or floating point numbers of various lengths, or as a binary string. Unlike higher-level data structures like arrays, a buffer is not resizable.
It corresponds roughly to:
char*
orchar[]
in C/C++byte[]
in Java- A mutable
bytes
or a non-resizablebytearray
in Python - Strings in php if they were mutable