version 1.2, 1999/11/24 00:26:01 |
version 1.3, 1999/11/24 19:53:44 |
|
|
/* Appends data to the buffer, expanding it if necessary. */ |
/* Appends data to the buffer, expanding it if necessary. */ |
void buffer_append(Buffer * buffer, const char *data, unsigned int len); |
void buffer_append(Buffer * buffer, const char *data, unsigned int len); |
|
|
/* Appends space to the buffer, expanding the buffer if necessary. |
/* |
This does not actually copy the data into the buffer, but instead |
* Appends space to the buffer, expanding the buffer if necessary. This does |
returns a pointer to the allocated region. */ |
* not actually copy the data into the buffer, but instead returns a pointer |
|
* to the allocated region. |
|
*/ |
void buffer_append_space(Buffer * buffer, char **datap, unsigned int len); |
void buffer_append_space(Buffer * buffer, char **datap, unsigned int len); |
|
|
/* Returns the number of bytes of data in the buffer. */ |
/* Returns the number of bytes of data in the buffer. */ |
|
|
/* Returns a pointer to the first used byte in the buffer. */ |
/* Returns a pointer to the first used byte in the buffer. */ |
char *buffer_ptr(Buffer * buffer); |
char *buffer_ptr(Buffer * buffer); |
|
|
/* Dumps the contents of the buffer to stderr in hex. This intended for |
/* |
debugging purposes only. */ |
* Dumps the contents of the buffer to stderr in hex. This intended for |
|
* debugging purposes only. |
|
*/ |
void buffer_dump(Buffer * buffer); |
void buffer_dump(Buffer * buffer); |
|
|
#endif /* BUFFER_H */ |
#endif /* BUFFER_H */ |