X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=CollectionReader.h;h=6e8f373414878fe18289c80e9cfec554d54ef250;hb=8c428eac937ccba2a2bb459ce9999a1adba5e6c0;hp=ef71c72736269ce56340860c88cd7cc24b3b4813;hpb=b11d90aaee4332e80c2f308113899fddebf2643a;p=ecparse.git diff --git a/CollectionReader.h b/CollectionReader.h index ef71c72..6e8f373 100644 --- a/CollectionReader.h +++ b/CollectionReader.h @@ -7,6 +7,8 @@ #include "ReaderInput.h" #include "ED2KLink.h" #include "GrowingBuffer.h" +#include "StringTag.h" +#include "BlobTag.h" class CollectionReader { @@ -19,8 +21,12 @@ public: private: void identifyCollectionType(); bool isLineBreakPresent(); + bool ensureBufferCapacity(size_t byteCount); void readMoreBytes(); + BlobTag* readBlobTag(bool hader); + StringTag* readStringTag(bool header); + private: ReaderInput* readerInput; GrowingBuffer growingBuffer;