Ion C
C library for Ion
_ion_reader_options Struct Reference

#include <ion_reader.h>

Data Fields

BOOL return_system_values
 
int new_line_char
 
SIZE max_container_depth
 
SIZE max_annotation_count
 
SIZE max_annotation_buffered
 
SIZE symbol_threshold
 
SIZE user_value_threshold
 
SIZE chunk_threshold
 
SIZE allocation_page_size
 
BOOL skip_character_validation
 
ION_CATALOG * pcatalog
 
decContext * decimal_context
 
ION_READER_CONTEXT_CHANGE_NOTIFIER context_change_notifier
 

Detailed Description

Reader configuration data, could be supplied by user during reader creation time. All fields in the structure are defaulted to 0, except for the following:

#define DEFAULT_ANNOTATION_LIMIT 10 #define DEFAULT_WRITER_STACK_DEPTH 10 #define DEFAULT_CHUNK_THRESHOLD DEFAULT_BLOCK_SIZE #define DEFAULT_SYMBOL_THRESHOLD 512

Some field also has a range limit: #define MIN_ANNOTATION_LIMIT 1 #define MIN_WRITER_STACK_DEPTH 2 #define MIN_SYMBOL_THRESHOLD 32 #define MIN_CHUNK_THRESHOLD 32 #define MIN_ION_ALLOCATION_BLOCK_SIZE 32

Field Documentation

◆ allocation_page_size

SIZE _ion_reader_options::allocation_page_size

Memory is allocated in pages owned by the primary entities it's default size is 4096

◆ chunk_threshold

SIZE _ion_reader_options::chunk_threshold

The size over which long values are returned as chunks. This is only valid for string, clob and blob values as all others must be buffered up to the limit of user_value_threshold. The default is 4096.

◆ context_change_notifier

ION_READER_CONTEXT_CHANGE_NOTIFIER _ion_reader_options::context_change_notifier

Notification callback data to be used upon symbol table context change. Ignored if context_change_notifier.notify is NULL.

◆ decimal_context

decContext* _ion_reader_options::decimal_context

Handle to the decNumber context for the reader to use. This allows configuration of the maximum number of decimal digits, decimal exponent range, etc. See decContextDefault in decContext.h for simple initialization.

If NULL, the reader will initialize its decimal context by calling decContextDefault with the DEC_INIT_DECQUAD option, which results in a maximum of 34 decimal digits and an exponent range of [-6143, 6144].

Note that up to 34 digits of precision will always be supported, even if configured to be less than 34.

◆ max_annotation_buffered

SIZE _ion_reader_options::max_annotation_buffered

The max number number of bytes the annotations on a single value. This is an total. How the bytes are divided among the annotations is irrelevant (i.e. 1 large, or 100 small may have the same total space requirements). defaults to user_value_threshold (or 4096).

◆ max_annotation_count

SIZE _ion_reader_options::max_annotation_count

The max number of annotations on 1 value, defaults to 10

◆ max_container_depth

SIZE _ion_reader_options::max_container_depth

The max container depth defaults to 10

◆ new_line_char

int _ion_reader_options::new_line_char

Character to be treated as new line for line counting, defaults to '
'

◆ pcatalog

ION_CATALOG* _ion_reader_options::pcatalog

Handle to catalog of shared symbol tables for the reader to use. If NULL, will be treated as empty.

◆ return_system_values

BOOL _ion_reader_options::return_system_values

If true the reader will return otherwise hidden system values

◆ skip_character_validation

BOOL _ion_reader_options::skip_character_validation

If true this will disable validation of string content which verifies the string returned is in fact a valid UTF-8 sequence. This defaults to false.

◆ symbol_threshold

SIZE _ion_reader_options::symbol_threshold

The size maximum size allowed for symbols, 512 bytes is the default

◆ user_value_threshold

SIZE _ion_reader_options::user_value_threshold

user value allocation threshold, max size of allocation made to process any value returned to the user, default is 4096. Includes symbol, int, decimal, timestamp, blob values in all cases. This includes string, clob, and blob values if they are to be returned to the caller in a contiguous buffer.


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