diff options
Diffstat (limited to 'src/sliding_buffer.h')
-rw-r--r-- | src/sliding_buffer.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/sliding_buffer.h b/src/sliding_buffer.h index 838e386..148b369 100644 --- a/src/sliding_buffer.h +++ b/src/sliding_buffer.h @@ -8,10 +8,12 @@ typedef struct { unsigned char *buf; /* pointer to the buffer */ unsigned char *ptr; /* start positon (used internally) */ unsigned char *segment; /* the start position of this segment */ - int len; /* length of this segment */ - int maxsize; /* max size of buffer */ - int bufsize; /* current size of buffer */ + size_t len; /* length of this segment */ + size_t maxsize; /* max size of buffer */ + size_t bufsize; /* current size of buffer */ int eof; /* true if there is no more to read */ + size_t extent; /* if non-zero, max number of bytes to read */ + size_t extent_used; /* how much we have already read */ } sliding_buffer_t; |