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.

How many chars can be in a char array?

#define HUGE_NUMBER ??? char string[HUGE_NUMBER]; do_something_with_the_string(string); I was wondering what would be the …

c arrays memory char buffer
File I/O with streams - best memory buffer size

I am writing a small I/O library to assist with a larger (hobby) project. A part of this library …

c# optimization file size buffer
What is the use of -fno-stack-protector?

I have written an application in C, and I'm trying to understand what is the purpose of the -fno-stack-protector command …

c buffer stack-overflow protection callstack
Node.js convert hexadecimal number to byteArray

I want to send a raw buffer using bluetooth connection. The content is a hex number. Currently I split the …

node.js buffer
Notice: ob_end_flush(): failed to send buffer of zlib output compression (1) in

I don't have any problem on localhost. but when i tested my codes on server, end of every page i …

php buffer zlib
What exactly is the point of memoryview in Python

Checking the documentation on memoryview: memoryview objects allow Python code to access the internal data of an object that supports …

python buffer memoryview
CharBuffer vs. char[]

Is there any reason to prefer a CharBuffer to a char[] in the following: CharBuffer buf = CharBuffer.allocate(DEFAULT_BUFFER_…

java io buffer
How to garbage collect a direct buffer in Java

I have a memory leak that I have isolated to incorrectly disposed direct byte buffers. ByteBuffer buff = ByteBuffer.allocateDirect(7777777); The …

java memory-leaks buffer bytebuffer
Another: Force Chrome to fully buffer mp4 video

I've seen a few threads about this, but with no answers, so I thought I'd add another to the grave …

html google-chrome video buffer mp4
Copy data from fstream to stringstream with no buffer?

Is there anyway I can transfer data from an fstream (a file) to a stringstream (a stream in the memory)? …

c++ stl buffer fstream stringstream