Go to the source code of this file.
Data Structures | |
struct | _TidyBuffer |
Functions | |
void TIDY_CALL | tidyBufInit (TidyBuffer *buf) |
void TIDY_CALL | tidyBufInitWithAllocator (TidyBuffer *buf, TidyAllocator *allocator) |
void TIDY_CALL | tidyBufAlloc (TidyBuffer *buf, uint allocSize) |
void TIDY_CALL | tidyBufAllocWithAllocator (TidyBuffer *buf, TidyAllocator *allocator, uint allocSize) |
void TIDY_CALL | tidyBufCheckAlloc (TidyBuffer *buf, uint allocSize, uint chunkSize) |
void TIDY_CALL | tidyBufFree (TidyBuffer *buf) |
void TIDY_CALL | tidyBufClear (TidyBuffer *buf) |
void TIDY_CALL | tidyBufAttach (TidyBuffer *buf, byte *bp, uint size) |
void TIDY_CALL | tidyBufDetach (TidyBuffer *buf) |
void TIDY_CALL | tidyBufAppend (TidyBuffer *buf, void *vp, uint size) |
void TIDY_CALL | tidyBufPutByte (TidyBuffer *buf, byte bv) |
int TIDY_CALL | tidyBufPopByte (TidyBuffer *buf) |
int TIDY_CALL | tidyBufGetByte (TidyBuffer *buf) |
Bool TIDY_CALL | tidyBufEndOfInput (TidyBuffer *buf) |
void TIDY_CALL | tidyBufUngetByte (TidyBuffer *buf, byte bv) |
void TIDY_CALL | tidyInitInputBuffer (TidyInputSource *inp, TidyBuffer *buf) |
void TIDY_CALL | tidyInitOutputBuffer (TidyOutputSink *outp, TidyBuffer *buf) |
(c) 1998-2007 (W3C) MIT, ERCIM, Keio University See tidy.h for the copyright notice.
CVS Info :
Requires buffer to automatically grow as bytes are added. Must keep track of current read and write points.
|
Initialize data structure using the default allocator |
|
Initialize data structure using the given custom allocator |
|
Free current buffer, allocate given amount, reset input pointer, use the default allocator |
|
Free current buffer, allocate given amount, reset input pointer, use the given custom allocator |
|
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 |