/* Structure defining a buffer's head */
struct buffer {
- size_t head; /* start offset of remaining data relative to data */
+ size_t head; /* start offset of remaining data relative to area */
size_t len; /* length of data after head */
size_t size; /* buffer size in bytes */
size_t output; /* TEMPORARY: part of <len> which is to be forwarded */
- char data[0]; /* <size> bytes of stored data */
+ char area[0]; /* <size> bytes of stored data */
};
*/
static inline char *b_orig(const struct buffer *b)
{
- return (char *)b->data;
+ return (char *)b->area;
}
/* b_size() : returns the size of the buffer. */
*/
static inline char *b_wrap(const struct buffer *b)
{
- return (char *)b->data + b->size;
+ return (char *)b->area + b->size;
}
/* b_data() : returns the number of bytes present in the buffer. */
* data p size
*
* <out> is the room reserved to copy the channel output. It starts at
- * ob->data and has not yet been filled. <c> is the room reserved to
+ * ob->area and has not yet been filled. <c> is the room reserved to
* write the chunk size (10 bytes). <comp_in> is the compressed
* equivalent of the data part of ib->len. <empty> is the amount of
* empty bytes at the end of the buffer, into which we may have to