ScummVM API documentation
ICB::DataPacker Class Reference

Public Types

enum  ModeEnum { NO_MODE, READ, WRITE }
 
enum  PackModeEnum { NO_PACKMODE, PACK, DONT_PACK }
 
enum  ReturnCodes {
  OK, BAD_POS, BAD_MODE, BAD_PACKMODE,
  READ_ERROR, WRITE_ERROR, BAD_READFUNC, BAD_WRITEFUNC,
  BAD_VALUE
}
 

Public Member Functions

 DataPacker (DataPacker &src)
 
DataPackeroperator= (DataPacker &b)
 
ReturnCodes open (const ModeEnum mode, const PackModeEnum packMode)
 
ReturnCodes put (const int32 value, Common::WriteStream *fh)
 
ReturnCodes Get (int32 &value, Common::SeekableReadStream *stream)
 
ReturnCodes close (Common::WriteStream *stream)
 
ReturnCodes close (Common::SeekableReadStream *stream)
 
int32 Pos () const
 
int32 PackMin () const
 
int32 PackMax () const
 

The documentation for this class was generated from the following file: