X-Git-Url: https://git.pterodactylus.net/?p=ecparse.git;a=blobdiff_plain;f=CollectionReader.h;h=770c2a8982890ce1bd994e8fb74d2c11f8c08ab6;hp=72f652a50c5704266ceea2ed4c01c6fe3af57b37;hb=88a6c6019c9364a9cf0df4af1760b3be44b9052e;hpb=ee4c05de3061d1d7abfd1710823442cbc0cfbf46 diff --git a/CollectionReader.h b/CollectionReader.h index 72f652a..770c2a8 100644 --- a/CollectionReader.h +++ b/CollectionReader.h @@ -4,9 +4,12 @@ #pragma once +#include #include "ReaderInput.h" #include "ED2KLink.h" #include "GrowingBuffer.h" +#include "StringTag.h" +#include "BlobTag.h" class CollectionReader { @@ -22,12 +25,17 @@ private: bool ensureBufferCapacity(size_t byteCount); void readMoreBytes(); + BlobTag* readBlobTag(bool hader); + StringTag* readStringTag(bool header); + private: ReaderInput* readerInput; GrowingBuffer growingBuffer; - int version; + uint32_t version; bool firstLink; bool isTextCollection; + uint32_t fileCollectionCount; + uint32_t collectionFileIndex; };