jigdo API
util/bstream.hh File Reference
I/O streams for bytes (byte is unsigned char, not regular char). More...
#include <config.h>
#include <iostream>
#include <fstream>
#include <stdio.h>
#include <debug.hh>
Go to the source code of this file.
Typedefs | |
typedef istream | bistream |
typedef ostream | bostream |
typedef iostream | biostream |
typedef ifstream | bifstream |
typedef ofstream | bofstream |
typedef fstream | bfstream |
Functions | |
bistream & | readBytes (bistream &s, byte *buf, streamsize count) |
biostream & | readBytes (biostream &s, byte *buf, streamsize count) |
bostream & | writeBytes (bostream &s, const byte *buf, streamsize count) |
biostream & | writeBytes (biostream &s, const byte *buf, streamsize count) |
Detailed Description
I/O streams for bytes (byte is unsigned char, not regular char).This was first solved with typedefs like "typedef basic_istream<byte> bistream;". That turns out to be difficult, though, since you need to supply your own implementation for char_traits and basic_fstream. The current typedefs aren't very useful except to indicate in the source: "This is /intended/ to be used for binary data, not text".
Typedef Documentation
typedef fstream bfstream |
typedef ifstream bifstream |
typedef iostream biostream |
typedef istream bistream |
typedef ofstream bofstream |
typedef ostream bostream |
Function Documentation
Referenced by decompressFile(), fileToImage(), printBlockSums(), Zibstream::read(), JigdoDesc::seekFromEnd(), and MD5Sum::updateFromStream().
Referenced by fileToImage(), mkfiles(), mkimage(), JigdoDescVec::put(), MkTemplate::run(), writeAll(), and Zobstream::writeZipped().
Generated on Tue Sep 23 14:27:42 2008 for jigdo by
