actual free memory available in circular buffer of pipedinputstream
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   ss_sh
Posted On:   Thursday, April 24, 2003 10:25 PM

hi all,


i wanted to find out the actual amount of bytes that can be
written to a piped output stream that is connected to a
piped input stream.

i want to do that to keep buffer size fix, and data is
written by one thread and read by another.


Thanx

Re: actual free memory available in circular buffer of pipedinputstream

Posted By:   Stephen_Ostermiller  
Posted On:   Monday, April 28, 2003 08:55 AM

If you look at the source code, you will find that this buffer is 1024 bytes. There is no way to change it without recompiling the piped streams. I usually want more control of my buffers. I also don't like the interface on piped streams. I wrote my own circular buffer classes: http://ostermiller.org/utils/CircularBuffer.html
About | Sitemap | Contact