470,849 Members | 1,123 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,849 developers. It's quick & easy.

How to write binary data to a file using buffer?

I'd like to write compressed data to a file.
To improve performance, I want to use buffer.

I read some books, they all talk about 'character' stream.
But I think compressed data should be binary.

And, what buffer size if optimal?
How can I set the buffer size?

I need to checkpoint the buffer when
1) the buffer is full.
2) I have put all the data to the buffer.

Should I use standard library or boost?

Jun 27 '08 #1
0 1295

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

103 posts views Thread by Steven T. Hatton | last post: by
10 posts views Thread by Angus Comber | last post: by
5 posts views Thread by Confused User | last post: by
4 posts views Thread by jesuraj | last post: by
6 posts views Thread by ericunfuk | last post: by
3 posts views Thread by nguser3552 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.