projects
/
ecparse.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add hash tag
[ecparse.git]
/
GrowingBuffer.h
diff --git
a/GrowingBuffer.h
b/GrowingBuffer.h
index
3efa30d
..
856c4d2
100644
(file)
--- a/
GrowingBuffer.h
+++ b/
GrowingBuffer.h
@@
-26,6
+26,7
@@
public:
size_t getPosition();
size_t getLimit();
size_t getSize();
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
/**
* 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);
void clear();
void resize(double factor = 1.0);
+ size_t indexOf(char c, size_t start = 0);
+
private:
void* data;
size_t size;
private:
void* data;
size_t size;