search for: flushbuffer

Displaying 5 results from an estimated 5 matches for "flushbuffer".

Did you mean: flush_buffer
2009 Dec 21
3
[LLVMdev] [PATCH] Circular Buffered Debug Stream
...rcular_raw_ostream be used with other streams at some point? In that case, setting the underlying stream to unbuffered seems even more dangerous. The client who sets up the buffers has both the power and the knowledge to set the streams up correctly when the streams are created. > + /// flushBuffer - Dump the contents of the buffer to Stream. > + /// > + void flushBuffer(void) { > + // Write the older portion of the buffer. > + TheStream->write(Cur, BufferArray + BufferSize - Cur); > + // Write the newer portion of the buffer. > + TheStream->w...
2009 Dec 21
0
[LLVMdev] [PATCH] Circular Buffered Debug Stream
...p the buffers has both the power and the > knowledge to set the streams up correctly when the streams are created. Fair enough. I'll make the change. I was simply following what we did for formatted_raw_ostream. It seems a bit wasteful to do buffering on both streams. > > + /// flushBuffer - Dump the contents of the buffer to Stream. > > + /// > > + void flushBuffer(void) { > > + // Write the older portion of the buffer. > > + TheStream->write(Cur, BufferArray + BufferSize - Cur); > > + // Write the newer portion of the buffer. &g...
2009 Dec 21
0
[LLVMdev] [PATCH] Circular Buffered Debug Stream
...ool OwnsStream; + + /// BufferSize - The size of the buffer in bytes. + /// + size_t BufferSize; + + /// BufferArray - The actual buffer storage. + /// + char *BufferArray; + + /// Cur - Pointer to the current output point in BufferArray. + /// + char *Cur; + + /// flushBuffer - Dump the contents of the buffer to Stream. + /// + void flushBuffer(void) { + // Write the older portion of the buffer. + TheStream->write(Cur, BufferArray + BufferSize - Cur); + // Write the newer portion of the buffer. + TheStream->write(BufferArray, Cur - Buffer...
2009 Dec 19
2
[LLVMdev] [PATCH] Circular Buffered Debug Stream
On Friday 18 December 2009 19:47, Chris Lattner wrote: > On Dec 18, 2009, at 3:46 PM, David Greene wrote: > > + /// circular_raw_ostream - A raw_ostream that saves its output in a > > + /// circular buffer. > > A better description would be "which *can* save its data to a circular > buffer, or can pass it through directly to an underlying stream if > specified
2008 Dec 10
3
How to fix broken ogg/theora files
Hi there, I haven't been on this list until now, so I wasn't aware of this problem until last night ;-) - sorry for that. I am working on a patch for oggCut for that issue (looks good actually but I would like to do some testing befor I can release a patch.) Normal players are not effected by the page time misordering, so I took this issue as "minor". The reason for the