Afficher un message
Vieux 06/06/2008, 05h38   #1
Lambda
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut 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?

  Réponse avec citation
 
Page generated in 0,04586 seconds with 9 queries