Tor  0.4.4.0-alpha-dev
Data Fields
buf_pos_t Struct Reference

Data Fields

const chunk_t * chunk
 
ptrdiff_t pos
 
size_t chunk_pos
 

Detailed Description

Internal structure: represents a position in a buffer.

Definition at line 714 of file buffers.c.

Field Documentation

◆ chunk

const chunk_t* chunk

Which chunk are we pointing to?

Definition at line 715 of file buffers.c.

Referenced by buf_find_pos_of_char(), buf_matches_at_pos(), buf_pos_inc(), and buf_pos_init().

◆ chunk_pos

size_t chunk_pos

Total length of all previous chunks.

Definition at line 718 of file buffers.c.

Referenced by buf_find_pos_of_char(), buf_find_string_offset(), buf_pos_inc(), and buf_pos_init().

◆ pos

ptrdiff_t pos

Which character inside the chunk's data are we pointing to?

Definition at line 716 of file buffers.c.

Referenced by buf_find_pos_of_char(), buf_find_string_offset(), buf_matches_at_pos(), buf_pos_inc(), and buf_pos_init().


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