rpm  5.4.15
Data Fields
bson Struct Reference

#include <rpmio/bson.h>

Data Fields

char * data
 Pointer to a block of data in this BSON object. More...
 
char * cur
 Pointer to the current position. More...
 
int dataSize
 The number of bytes allocated to char *data. More...
 
bson_bool_t finished
 When finished, the BSON object can no longer be modified. More...
 
bson_bool_t ownsData
 Whether destroying this object will deallocate its data block. More...
 
int err
 Bitfield representing errors or warnings on this buffer. More...
 
int stackSize
 Number of elements in the current stack. More...
 
int stackPos
 Index of current stack position. More...
 
size_t * stackPtr
 Pointer to the current stack. More...
 
size_t stack [32]
 A stack used to keep track of nested BSON elements. More...
 

Detailed Description

Definition at line 113 of file bson.h.

Field Documentation

char* bson::cur

Pointer to the current position.

Definition at line 115 of file bson.h.

Referenced by _bson_position(), bson_append(), bson_append32(), bson_append32_as_int(), bson_append64(), bson_append_byte(), bson_ensure_space(), and bson_init_size().

char* bson::data
int bson::dataSize

The number of bytes allocated to char *data.

Definition at line 116 of file bson.h.

Referenced by bson_ensure_space(), bson_init_finished_data(), bson_init_size(), bson_init_unfinished_data(), and gridfile_load_pending_data_with_pos_chunk().

int bson::err

Bitfield representing errors or warnings on this buffer.

Definition at line 119 of file bson.h.

Referenced by bson_append_estart(), bson_append_string_base(), bson_ensure_space(), bson_validate_string(), mongo_bson_valid(), and mongo_cursor_bson_valid().

bson_bool_t bson::finished

When finished, the BSON object can no longer be modified.

Definition at line 117 of file bson.h.

Referenced by bson_append_estart(), bson_init_finished_data(), bson_init_finished_data_with_copy(), mongo_bson_valid(), and mongo_cursor_bson_valid().

bson_bool_t bson::ownsData

Whether destroying this object will deallocate its data block.

Definition at line 118 of file bson.h.

Referenced by bson_ensure_space(), bson_init_finished_data(), bson_init_size(), and bson_init_unfinished_data().

size_t bson::stack[32]

A stack used to keep track of nested BSON elements.

Must be at end of bson struct so _bson_zero does not clear.

Definition at line 123 of file bson.h.

Referenced by __declspec(), and _bson_append_grow_stack().

int bson::stackPos

Index of current stack position.

Definition at line 121 of file bson.h.

size_t* bson::stackPtr

Pointer to the current stack.

Definition at line 122 of file bson.h.

Referenced by _bson_append_grow_stack().

int bson::stackSize

Number of elements in the current stack.

Definition at line 120 of file bson.h.

Referenced by _bson_append_grow_stack().


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