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.

C char array initialization

I'm not sure what will be in the char array after initialization in the following ways. 1.char buf[10] = ""; 2. char buf[10] = " "; 3. …

c arrays char initialization buffer
How to clear input buffer in C?

I have the following program: int main(int argc, char *argv[]) { char ch1, ch2; printf("Input the first character:"); // Line 1 …

c buffer
Reading and writing binary file

I'm trying to write code to read a binary file into a buffer, then write the buffer to another file. …

c++ file binary buffer
How can I clear previous output in Terminal in Mac OS X?

I know the clear command that 'clears' the current screen, but it does this just by printing lots of newlines …

macos shell buffer
What is the difference between buffer and cache memory in Linux?

To me it's not clear what's the difference between the two Linux memory concepts : buffer and cache. I've read through …

linux caching memory buffer
How do I close a single buffer (out of many) in Vim?

I open several files in Vim by, for example, running vim a/*.php which opens 23 files. I then make my …

vim buffer
What is the use of ByteBuffer in Java?

What are example applications for a ByteBuffer in Java? Please list any example scenarios where this is used. Thank you!

java buffer bytebuffer
Save Screen (program) output to a file

I need to save the whole output of Screen to a file to check later all the content. The reason …

logging buffer dump gnu-screen
Flushing buffers in C

Should fflush() not be used to flush a buffer even if it is an output stream? What is it useful …

c buffer fflush
Convert a binary NodeJS Buffer to JavaScript ArrayBuffer

How can I convert a NodeJS binary buffer into a JavaScript ArrayBuffer?

javascript node.js binary buffer arraybuffer