X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=CollectionReader.h;h=72f652a50c5704266ceea2ed4c01c6fe3af57b37;hb=e9bd547c31bc06fac87b49cafa624c03c2d50c91;hp=5e10c51b021cbb436193d331d4413d00294ca1f4;hpb=5f35ee49184899c1bfffe4d788286b7c9b578c00;p=ecparse.git diff --git a/CollectionReader.h b/CollectionReader.h index 5e10c51..72f652a 100644 --- a/CollectionReader.h +++ b/CollectionReader.h @@ -5,6 +5,8 @@ #pragma once #include "ReaderInput.h" +#include "ED2KLink.h" +#include "GrowingBuffer.h" class CollectionReader { @@ -12,8 +14,20 @@ public: CollectionReader(ReaderInput* readerInput); ~CollectionReader(); + ED2KLink* getNextLink(); + +private: + void identifyCollectionType(); + bool isLineBreakPresent(); + bool ensureBufferCapacity(size_t byteCount); + void readMoreBytes(); + private: ReaderInput* readerInput; + GrowingBuffer growingBuffer; + int version; + bool firstLink; + bool isTextCollection; };