Top "Buffer" questions

A buffer is an area of memory set aside for temporary storage of data while it is being moved from one place to another.

Use of Vertex Array Objects and Vertex Buffer Objects

I am trying to understand these two, how to use them and how they are related. Let's say I want …

opengl buffer vbo vertices vao
Why use shm_open?

What's the advantage of doing: shm_open followed a mmap? Why not create a regular file, and then pass that …

c linux buffer shared-memory mmap
what happens when I write data to a blocking socket, faster than the other side reads?

suppose I write data really fast [I have all the data in memory] to a blocking socket. further suppose the …

sockets tcp buffer blocking
Possible to calculate MD5 (or other) hash with buffered reads?

I need to calculate checksums of quite large files (gigabytes). This can be accomplished using the following method: private byte[] …

c# .net-3.5 hash md5 buffer
Reading file from SFTP server using Node.js and SSH2

I have a pretty strange problem working with read streams in Node.js. I'm using SSH2 to create a sftp …

javascript node.js buffer sftp readable
Multiple threads using System.out.println in Java

I have a multi-threaded Java application that will output information about a message it receives to the console for debugging …

java multithreading buffer println
Default buffer size for a file on Linux

The documentation states that the default value for buffering is: If omitted, the system default is used. I am currently …

python linux file buffer rhel6
What is the difference between flush() and sync() in regard to fstream buffers?

I was reading the cplusplus.com tutorial on I/O. At the end, it says fstream buffers are synchronized with …

c++ stream buffer fstream ostream
Communication between C++ and Python

I am looking for an efficient and smart way to send data between a C++-program and a Python-script. I …

python c++ cross-platform buffer communication
How to expand input buffer size of pyserial

I want to communicate with the phone via serial port. After writing some command to phone, I used ser.read(…

python buffer pyserial