buf_t Struct Reference


Data Fields

uint32_t magic
size_t datalen
size_t default_chunk_size
chunk_thead
chunk_ttail

Detailed Description

A resizeable buffer, optimized for reading and writing.

Field Documentation

uint32_t buf_t::magic

Magic cookie for debugging: Must be set to BUFFER_MAGIC.

Referenced by assert_buf_ok(), buf_free(), and buf_new().

Don't allocate any chunks smaller than this for this buffer.

Referenced by buf_add_chunk_with_capacity(), buf_new(), and buf_new_with_capacity().


The documentation for this struct was generated from the following file:

Generated on Tue May 25 00:31:06 2010 for tor by  doxygen 1.5.6