From ebcc95da4c26369511caa90d89c5ed06e1e4853a Mon Sep 17 00:00:00 2001 From: Treeki Date: Thu, 14 Oct 2010 20:17:20 +0200 Subject: brlyt packing added, plus some changes in the existing API (mostly for const correctness). brlyt writing may still need some testing (especially for the material structs) --- lyt/binaryfilesection.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'lyt/binaryfilesection.h') diff --git a/lyt/binaryfilesection.h b/lyt/binaryfilesection.h index 3e82bbb..be1ef94 100644 --- a/lyt/binaryfilesection.h +++ b/lyt/binaryfilesection.h @@ -24,15 +24,20 @@ class LYTBinaryFileSection { public: - LYTBinaryFileSection(); + LYTBinaryFileSection(); + LYTBinaryFileSection(Magic magic); + LYTBinaryFileSection(Magic magic, QByteArray data); Magic magic; QByteArray data; - void writeToDataStream(QDataStream &out); + QDataStream *createReadStream() const; + QDataStream *createWriteStream(); + + void writeToDataStream(QDataStream &out) const; void readFromDataStream(QDataStream &in); - int writtenSize(); + int writtenSize() const; }; -- cgit v1.2.3