Go to the source code of this file.
Data Structures | |
struct | _TidyBuffer |
Functions | |
void | tidyBufInit (TidyBuffer *buf) |
void | tidyBufAlloc (TidyBuffer *buf, uint allocSize) |
void | tidyBufCheckAlloc (TidyBuffer *buf, uint allocSize, uint chunkSize) |
void | tidyBufFree (TidyBuffer *buf) |
void | tidyBufClear (TidyBuffer *buf) |
void | tidyBufAttach (TidyBuffer *buf, void *bp, uint size) |
void | tidyBufDetach (TidyBuffer *buf) |
void | tidyBufAppend (TidyBuffer *buf, void *vp, uint size) |
void | tidyBufPutByte (TidyBuffer *buf, byte bv) |
int | tidyBufPopByte (TidyBuffer *buf) |
int | tidyBufGetByte (TidyBuffer *buf) |
Bool | tidyBufEndOfInput (TidyBuffer *buf) |
void | tidyBufUngetByte (TidyBuffer *buf, byte bv) |
void | initInputBuffer (TidyInputSource *inp, TidyBuffer *buf) |
void | initOutputBuffer (TidyOutputSink *outp, TidyBuffer *buf) |
CVS Info :
Requires buffer to automatically grow as bytes are added. Must keep track of current read and write points.
|
Zero out data structure |
|
Free current buffer, allocate given amount, reset input pointer |
|
Expand buffer to given size. Chunk size is minimum growth. Pass 0 for default of 256 bytes. |
|
Free current contents and zero out |
|
Set buffer bytes to 0 |
|
Attach to existing buffer |
|
Detach from buffer. Caller must free. |
|
Append bytes to buffer. Expand if necessary. |
|
Append one byte to buffer. Expand if necessary. |
|
Get byte from end of buffer |
|
Get byte from front of buffer. Increment input offset. |
|
At end of buffer? |
|
Put a byte back into the buffer. Decrement input offset. |
|
Initialize a buffer input source |
|
Initialize a buffer output sink |