22 #ifndef PINK_ARCHIVE_H 23 #define PINK_ARCHIVE_H 25 #include "common/hash-str.h" 26 #include "common/str-array.h" 27 #include "common/stream.h" 44 void mapObject(
Object *obj);
46 byte readByte() {
return _readStream->readByte(); }
47 uint32 readDWORD() {
return _readStream->readUint32LE(); }
48 uint16 readWORD() {
return _readStream->readUint16LE(); }
55 void write(
const void *dataPtr, uint32 dataSize) { _writeStream->write(dataPtr, dataSize); }
56 void writeByte(byte val) { _writeStream->writeByte(val); }
57 void writeDWORD(uint32 val) { _writeStream->writeUint32LE(val); }
58 void writeWORD(uint16 val) { _writeStream->writeUint16LE(val); }
63 uint findObjectId(
const char *name);
65 Object *parseObject(
bool &isCopyReturned);
Definition: algorithm.h:29