X-Git-Url: https://git.pterodactylus.net/?p=ecparse.git;a=blobdiff_plain;f=GrowingBuffer.h;h=856c4d270b766e56994720d7b968cc89d9399a31;hp=3efa30de7743e7b868dcbc79951f5ac5a7a0929a;hb=HEAD;hpb=6cdb1a3a8775e9816948c9366c75d212fbd986c4 diff --git a/GrowingBuffer.h b/GrowingBuffer.h index 3efa30d..856c4d2 100644 --- a/GrowingBuffer.h +++ b/GrowingBuffer.h @@ -26,6 +26,7 @@ public: size_t getPosition(); size_t getLimit(); size_t getSize(); + size_t getRemaining(); /** * Sets the position of the buffer. The next {@link read(void*, size_t)} or @@ -42,6 +43,8 @@ public: void clear(); void resize(double factor = 1.0); + size_t indexOf(char c, size_t start = 0); + private: void* data; size_t size;