Data Fields | |
struct chunk_t * | next |
size_t | datalen |
size_t | memlen |
char * | data |
char | mem [1] |
struct chunk_t* chunk_t::next [read] |
The next chunk on the buffer or freelist.
Referenced by assert_buf_ok(), assert_freelist_ok(), buf_add_chunk_with_capacity(), buf_allocation(), buf_clear(), buf_find_offset_of_char(), buf_find_pos_of_char(), buf_pos_inc(), buf_pullup(), buf_remove_from_front(), buf_shrink_freelists(), chunk_free_unchecked(), chunk_new_with_alloc_size(), flush_chunk(), peek_from_buf(), and read_to_chunk().
size_t chunk_t::datalen |
The number of bytes stored in this chunk
Referenced by assert_buf_ok(), buf_find_offset_of_char(), buf_find_pos_of_char(), buf_pos_inc(), buf_pullup(), buf_remove_from_front(), chunk_new_with_alloc_size(), CHUNK_REMAINING_CAPACITY(), chunk_repack(), CHUNK_WRITE_PTR(), fetch_from_buf_http(), fetch_from_buf_socks(), fetch_from_buf_socks_client(), flush_buf(), flush_buf_tls(), flush_chunk(), peek_from_buf(), read_to_chunk(), read_to_chunk_tls(), write_to_buf(), and write_to_buf_zlib().
size_t chunk_t::memlen |
The number of usable bytes of storage in mem.
Referenced by assert_buf_ok(), assert_freelist_ok(), buf_allocation(), buf_pullup(), chunk_free_unchecked(), chunk_grow(), chunk_new_with_alloc_size(), CHUNK_REMAINING_CAPACITY(), read_to_buf(), and read_to_buf_tls().
char* chunk_t::data |
A pointer to the first byte of data stored in mem.
Referenced by assert_buf_ok(), buf_find_offset_of_char(), buf_find_pos_of_char(), buf_matches_at_pos(), buf_pullup(), buf_remove_from_front(), chunk_grow(), chunk_new_with_alloc_size(), CHUNK_REMAINING_CAPACITY(), chunk_repack(), CHUNK_WRITE_PTR(), fetch_from_buf_http(), fetch_from_buf_socks(), fetch_from_buf_socks_client(), flush_chunk(), flush_chunk_tls(), and peek_from_buf().
char chunk_t::mem[1] |
The actual memory used for storage in this chunk. May be more than one byte long.
Referenced by assert_buf_ok(), chunk_grow(), chunk_new_with_alloc_size(), CHUNK_REMAINING_CAPACITY(), and chunk_repack().