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.

Why doesn't Ruby have a real StringBuffer or StringIO?

I recently read a nice post on using StringIO in Ruby. What the author doesn't mention, though, is that StringIO …

ruby string io buffer
Should a buffer of bytes be signed or unsigned char buffer?

Should a buffer of bytes be signed char or unsigned char or simply a char buffer? Any differences between C …

c++ c char buffer
Log4Net RollingFileAppender not flushing IO buffer with low volume log

I'm pondering on the same issue as HENRI COOK did. It's been reported as a bug on Apache Jira as …

logging io buffer log4net flush
Playing Audio in .Net / C#

I'm an experienced MFC programmer of many years, who for the more recent years has been developing commercial apps in …

c# audio buffer playback
C++ socket programming Max size of TCP/IP socket Buffer?

I am using C++ TCP/IP sockets. According to my requirements my client has to connect to a server and …

c++ sockets buffer tcpclient tcpserver
std::fstream buffering vs manual buffering (why 10x gain with manual buffering)?

I have tested two writing configurations: Fstream buffering: // Initialization const unsigned int length = 8192; char buffer[length]; std::ofstream stream; stream.…

c++ file c++11 buffer fstream
Refresh all files in buffer from disk in vim

The command to refresh a file from version on disk is :e! How can I do the same for all …

git vim buffer
Is there a way to programmably flush the buffer in log4net

I'm using log4net with AdoNetAppender. It's seems that the AdoNetAppender has a Flush method. Is there anyway I can …

log4net buffer flush adonetappender
Java NIO - Memory mapped files

I recently came across this article which provided a nice intro to memory mapped files and how it can be …

java buffer nio channel memory-mapped-files
Android MediaPlayer takes long time to prepare and buffer

My application takes a long time to prepare and buffer an audio stream. I have read this question Why does …

java android buffer audio-streaming android-mediaplayer