Tor  0.4.7.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 721 of file buffers.c.

Field Documentation

◆ chunk

const chunk_t* chunk

Which chunk are we pointing to?

Definition at line 722 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 725 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 723 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: