odr_constack Struct Reference

stack for BER constructed items More...

#include <odr-priv.h>

Data Fields

const unsigned char * base
int base_offset
int len
const unsigned char * lenb
int len_offset
int lenlen
const char * name
struct odr_constackprev
struct odr_constacknext

Detailed Description

stack for BER constructed items

data structure for con stack.. a little peculiar. Since we can't deallocate memory we reuse stack items (popped items gets reused)

 *       +---+     +---+     +---+     +---+
 * NULL -|p n|-----|p n|-----|p n|-----|p n|-- NULL
 *       +---+     +---+     +---+     +---+
 *         |                   |
 *     stack_first         stack_top   reused item
 *

Definition at line 64 of file odr-priv.h.


Field Documentation

const unsigned char* odr_constack::base

Definition at line 66 of file odr-priv.h.

Referenced by odr_constructed_begin(), odr_constructed_end(), and odr_constructed_more().

starting point of data

Definition at line 67 of file odr-priv.h.

Referenced by odr_constructed_begin(), and odr_constructed_end().

Definition at line 68 of file odr-priv.h.

Referenced by odr_constructed_begin(), odr_constructed_end(), and odr_constructed_more().

where to encode length

Definition at line 71 of file odr-priv.h.

Referenced by odr_constructed_begin(), and odr_constructed_end().

const unsigned char* odr_constack::lenb

length of data, if known, else -1 (decoding only)

Definition at line 70 of file odr-priv.h.

Referenced by odr_constructed_begin().

Definition at line 72 of file odr-priv.h.

Referenced by odr_constructed_begin(), and odr_constructed_end().

const char* odr_constack::name

length of length-field

Definition at line 73 of file odr-priv.h.

Referenced by odr_constructed_begin(), and odr_get_element_path().

pointer back in stack

Definition at line 76 of file odr-priv.h.

Referenced by odr_constructed_begin().

name of stack entry

Definition at line 75 of file odr-priv.h.

Referenced by odr_constructed_begin(), and odr_get_element_path().


The documentation for this struct was generated from the following file:
Generated on Tue Aug 17 13:13:21 2010 for YAZ by  doxygen 1.6.3