Skip to content

File object_representation.h

FileList > base > object_representation.h

Go to the source code of this file

  • #include <setjmp.h>
  • #include <time.h>
  • #include <float.h>
  • #include <limits.h>
  • #include <assert.h>
  • #include <netinet/in.h>
  • #include "byte_order.h"
  • #include "db_set.h"
  • #include "error_manager.h"
  • #include "memory_alloc.h"
  • #include "oid.h"
  • #include "object_representation_constants.h"
  • #include "porting_inline.hpp"
  • #include "storage_common.h"
  • #include "lock_table.h"

Classes

Type Name
struct db_binary
struct db_reference
struct or_buf
struct or_varinfo

Public Types

Type Name
typedef struct db_binary DB_BINARY
typedef struct db_reference DB_REFERENCE
typedef struct or_buf OR_BUF
typedef struct or_varinfo OR_VARINFO
typedef struct setobj SETOBJ
typedef struct db_set SETREF
enum object__representation_8h_1a05589fbab0657f08285ebdfe93f5ec9e
enum object__representation_8h_1a16af7b253440dadd46a80a4b9fddba4d
enum object__representation_8h_1a385c44f6fb256e5716a2302a5b940388
enum object__representation_8h_1a39fca1837c5ce7715cbf571669660c13
enum object__representation_8h_1a6b7b47dd702d9e331586d485013fd1ea
enum object__representation_8h_1a80155586fa275b28773c9b203f52caba
enum object__representation_8h_1a94798fdadfbf49a7c658ace669a1d310
enum object__representation_8h_1aae05225933a42f81e7c4a9fb286596f9
enum object__representation_8h_1aaf105ae5beaca1dee30ae54530691fce
enum object__representation_8h_1aaf8fd5f0e57d456151c951e0f3715fc4
enum object__representation_8h_1ab04a0655cd1e3bcac5e8f48c18df1a57
enum object__representation_8h_1aba01db17f4a2bfbc3db60dc172972a25
enum object__representation_8h_1abc5c98fcc1211af2b80116dd6e0a035d
enum object__representation_8h_1ac36f475ca5b446f4fde4c9b90bec77c8
enum object__representation_8h_1adb49720dc49f7d4e4cf9adbf2948e409
enum object__representation_8h_1ae4d5251432e1a9e6803c0240cc492e18
enum object__representation_8h_1af9bdc3014f3d54c426b6d2df10de4960

Public Functions

Type Name
int classobj_decompose_property_oid (const char * buffer, int * volid, int * fileid, int * pageid)
int classobj_get_prop (DB_SEQ * properties, const char * name, DB_VALUE * pvalue)
void classobj_initialize_default_expr (DB_DEFAULT_EXPR * default_expr)
int db_enum_put_cs_and_collation (DB_VALUE * value, const int codeset, const int collation_id)
int db_string_put_cs_and_collation (DB_VALUE * value, const int codeset, const int collation_id)
int or_align_length (int length)
int or_chn (RECDES * record)
char * or_class_name (RECDES * record)
int or_db_value_size (DB_VALUE * var)
void or_decode (const char * buffer, char * dest, int size)
int or_disk_set_size (OR_BUF * buf, struct tp_domain * domain, DB_TYPE * set_type)
int or_elo_length (void * elo_ptr)
void or_encode (char * buffer, const char * source, int size)
int or_get_bound_bit (char * bound_bits, int element)
struct tp_domain * or_get_domain (OR_BUF * buf, struct tp_domain * dom, int * is_null)
int or_get_enumeration (OR_BUF * buf, DB_ENUMERATION * e)
int or_get_json_schema (OR_BUF * buf, REFPTR(char, schema))
int or_get_json_validator (OR_BUF * buf, REFPTR(JSON_VALIDATOR, validator))
int or_get_monetary (OR_BUF * buf, DB_MONETARY * monetary)
setobj * or_get_set (OR_BUF * buf, struct tp_domain * domain)
int or_get_set_header (OR_BUF * buf, DB_TYPE * set_type, int * size, int * domain, int * bound_bits, int * offset_table, int * element_tags, int * common_sub_header)
int or_get_value (OR_BUF * buf, DB_VALUE * value, struct tp_domain * domain, int expected, bool copy)
OR_VARINFO * or_get_var_table (OR_BUF * buf, int nvars, char *(*)(int) allocator)
OR_VARINFO * or_get_var_table_internal (OR_BUF * buf, int nvars, char *(*)(int) allocator, int offset_size)
char * or_get_varbit (OR_BUF * buf, int * length_ptr)
char * or_get_varchar (OR_BUF * buf, int * length_ptr)
int or_header_size (char * ptr)
int or_length_binary (DB_BINARY * binary)
int or_length_string (char * string)
int or_listid_length (void * listid)
int or_mvcc_get_repid_and_flags (OR_BUF * buf, int * error)
int or_mvcc_set_repid_and_flags (OR_BUF * buf, int mvcc_flag, int repid, int bound_bit, int variable_offset_size)
char * or_pack_bigint (char * ptr, DB_BIGINT number)
char * or_pack_bool_array (char * ptr, const bool * bools, int size)
char * or_pack_btid (char * buf, const BTID * btid)
char * or_pack_date (char * ptr, DB_DATE date)
char * or_pack_db_value (char * buffer, DB_VALUE * var)
char * or_pack_db_value_array (char * buffer, int count, DB_VALUE * val)
char * or_pack_domain (char * ptr, struct tp_domain * domain, int include_classoids, int is_null)
char * or_pack_double (char * ptr, double number)
char * or_pack_ehid (char * buf, EHID * btid)
char * or_pack_elo (char * ptr, void * elo)
char * or_pack_errcode (char * ptr, int error)
char * or_pack_float (char * ptr, float number)
char * or_pack_hfid (const char * ptr, const HFID * hfid)
char * or_pack_int (char * ptr, int number)
char * or_pack_int64 (char * ptr, INT64 number)
char * or_pack_int_array (char * buffer, int count, const int * int_array)
char * or_pack_key_val_range (char * ptr, const void * key_val_range_ptr)
char * or_pack_listid (char * ptr, void * listid)
char * or_pack_lock (char * ptr, LOCK lock)
char * or_pack_log_lsa (const char * ptr, const struct log_lsa * lsa)
char * or_pack_mem_value (char * ptr, DB_VALUE * value, int * packed_len_except_alignment)
char * or_pack_monetary (char * ptr, DB_MONETARY * money)
char * or_pack_mvccid (char * ptr, const MVCCID mvccid)
char * or_pack_oid (char * ptr, const OID * oid)
char * or_pack_oid_array (char * ptr, int n, const OID * oids)
char * or_pack_ptr (char * ptr, UINTPTR ptrval)
char * or_pack_recdes (char * buf, RECDES * recdes)
char * or_pack_set_header (char * buf, DB_TYPE stype, DB_TYPE etype, int bound_bits, int size)
char * or_pack_set_node (char * ptr, void * set_node)
char * or_pack_sha1 (char * ptr, const SHA1Hash * sha1)
char * or_pack_short (char * ptr, short number)
char * or_pack_spacedb (char * ptr, const SPACEDB_ALL * all, const SPACEDB_ONEVOL * vols, const SPACEDB_FILES * files)
char * or_pack_stream (char * ptr, const char * stream, size_t len)
char * or_pack_string (char * ptr, const char * string)
char * or_pack_string_array (char * buffer, int count, const char ** string_array)
char * or_pack_string_with_length (char * ptr, const char * string, int length)
char * or_pack_string_with_null_padding (char * ptr, const char * stream, size_t len)
char * or_pack_time (char * ptr, DB_TIME time)
char * or_pack_utime (char * ptr, DB_UTIME utime)
char * or_pack_value (char * buf, DB_VALUE * value)
int or_packed_bool_array_length (const bool * bools, int size)
int or_packed_db_value_array_length (int count, DB_VALUE * val)
int or_packed_domain_size (struct tp_domain * domain, int include_classoids)
int or_packed_enumeration_size (const DB_ENUMERATION * e)
int or_packed_put_varbit (OR_BUF * buf, const char * string, int bitlen)
int or_packed_put_varchar (OR_BUF * buf, char * string, int charlen)
int or_packed_recdesc_length (int length)
void or_packed_set_info (DB_TYPE set_type, struct tp_domain * domain, int include_domain, int * bound_bits, int * offset_table, int * element_tags, int * element_size)
int or_packed_set_length (setobj * set, int include_domain)
int or_packed_spacedb_size (const SPACEDB_ALL * all, const SPACEDB_ONEVOL * vols, const SPACEDB_FILES * files)
int or_packed_stream_length (size_t len)
int or_packed_string_array_length (int count, const char ** string_array)
int or_packed_string_length (const char * string, int * strlen)
int or_packed_value_size (const DB_VALUE * value, int collapse_null, int include_domain, int include_domain_classoids)
int or_packed_varbit_length (int bitlen)
int or_packed_varchar_length (int charlen)
int or_put_binary (OR_BUF * buf, DB_BINARY * binary)
void or_put_bound_bit (char * bound_bits, int element, int bound)
int or_put_domain (OR_BUF * buf, struct tp_domain * domain, int include_classoids, int is_null)
int or_put_enumeration (OR_BUF * buf, const DB_ENUMERATION * e)
int or_put_json_schema (OR_BUF * buf, const char * schema)
int or_put_json_validator (OR_BUF * buf, JSON_VALIDATOR * validator)
int or_put_monetary (OR_BUF * buf, DB_MONETARY * monetary)
void or_put_set (OR_BUF * buf, setobj * set, int include_domain)
int or_put_set_header (OR_BUF * buf, DB_TYPE set_type, int size, int domain, int bound_bits, int offset_table, int element_tags, int common_sub_header)
int or_put_sub_domain (OR_BUF * buf)
int or_put_value (OR_BUF * buf, DB_VALUE * value, int collapse_null, int include_domain, int include_domain_classoids)
int or_put_varbit (OR_BUF * buf, const char * string, int bitlen)
int or_put_varchar (OR_BUF * buf, char * string, int charlen)
int or_rep_id (RECDES * record)
int or_replace_chn (RECDES * record, int chn)
int or_set_element_offset (char * setptr, int element)
int or_set_node_length (void * set_node_ptr)
int or_set_rep_id (RECDES * record, int repid)
int or_skip_set_header (OR_BUF * buf)
char * or_unpack_bigint (char * ptr, DB_BIGINT * number)
char * or_unpack_bool_array (char * ptr, bool ** bools)
char * or_unpack_btid (char * buf, BTID * btid)
char * or_unpack_date (char * ptr, DB_DATE * date)
char * or_unpack_db_value (char * buffer, DB_VALUE * val)
char * or_unpack_db_value_array (char * buffer, DB_VALUE ** val, int * count)
char * or_unpack_domain (char * ptr, struct tp_domain ** domain_ptr, int * is_null)
char * or_unpack_double (char * ptr, double * number)
char * or_unpack_ehid (char * buf, EHID * btid)
char * or_unpack_elo (char * ptr, void ** elo_ptr)
char * or_unpack_errcode (char * ptr, int * error)
char * or_unpack_float (char * ptr, float * number)
char * or_unpack_hfid (char * ptr, HFID * hfid)
char * or_unpack_hfid_array (char * ptr, int n, HFID ** hfids)
char * or_unpack_int (char * ptr, int * number)
char * or_unpack_int64 (char * ptr, INT64 * number)
char * or_unpack_int_array (char * ptr, int n, int ** number_array)
char * or_unpack_key_val_range (char * ptr, void * key_val_range_ptr)
char * or_unpack_listid (char * ptr, void * listid_ptr)
char * or_unpack_lock (char * ptr, LOCK * lock)
char * or_unpack_log_lsa (char * ptr, struct log_lsa * lsa)
char * or_unpack_longint (char * ptr, int * number)
char * or_unpack_mem_value (char * buf, DB_VALUE * value)
char * or_unpack_method_sig_list (char * ptr, void ** method_sig_list_ptr)
char * or_unpack_monetary (char * ptr, DB_MONETARY * money)
char * or_unpack_mvccid (char * ptr, MVCCID * mvccid)
char * or_unpack_oid (char * ptr, OID * oid)
char * or_unpack_oid_array (char * ptr, int n, OID ** oids)
char * or_unpack_ptr (char * ptr, UINTPTR * ptrval)
char * or_unpack_recdes (char * buf, RECDES ** recdes)
char * or_unpack_set (char * ptr, setobj ** set, struct tp_domain * domain)
char * or_unpack_set_header (char * buf, DB_TYPE * stype, DB_TYPE * etype, int * bound_bits, int * size)
char * or_unpack_set_node (char * ptr, void * set_node_ptr)
char * or_unpack_setref (char * ptr, DB_SET ** ref)
char * or_unpack_sha1 (char * ptr, SHA1Hash * sha1)
char * or_unpack_short (char * ptr, short * number)
char * or_unpack_spacedb (char * ptr, SPACEDB_ALL * all, SPACEDB_ONEVOL ** vols, SPACEDB_FILES * files)
char * or_unpack_stream (char * ptr, char * stream, size_t len)
char * or_unpack_string (char * ptr, char ** string)
char * or_unpack_string_alloc (char * ptr, char ** string)
char * or_unpack_string_array (char * buffer, char *** string_array, int * cnt)
char * or_unpack_string_nocopy (char * ptr, char ** string)
char * or_unpack_time (char * ptr, DB_TIME * time)
char * or_unpack_unbound_listid (char * ptr, void ** listid_ptr)
char * or_unpack_utime (char * ptr, DB_UTIME * utime)
char * or_unpack_value (const char * buf, DB_VALUE * value)
char * or_unpack_var_table (char * ptr, int nvars, OR_VARINFO * vars)
int valcnv_convert_value_to_string (DB_VALUE * value)

Public Static Functions

Type Name
void OR_PUT_DOUBLE (char * ptr, double val)
void OR_PUT_FLOAT (char * ptr, float val)
int or_advance (OR_BUF * buf, int offset)
int or_align (OR_BUF * buf, int alignment)
int or_get_align (OR_BUF * buf, int align)
int or_get_align32 (OR_BUF * buf)
int or_get_align64 (OR_BUF * buf)
int or_get_big_var_offset (OR_BUF * buf, int * error)
DB_BIGINT or_get_bigint (OR_BUF * buf, int * error)
int or_get_byte (OR_BUF * buf, int * error)
int or_get_data (OR_BUF * buf, char * data, int length)
int or_get_date (OR_BUF * buf, DB_DATE * date)
int or_get_datetime (OR_BUF * buf, DB_DATETIME * datetime)
int or_get_datetimetz (OR_BUF * buf, DB_DATETIMETZ * datetimetz)
double or_get_double (OR_BUF * buf, int * error)
float or_get_float (OR_BUF * buf, int * error)
int or_get_int (OR_BUF * buf, int * error)
int or_get_mvccid (OR_BUF * buf, MVCCID * mvccid)
int or_get_offset (OR_BUF * buf, int * error)
int or_get_offset_internal (OR_BUF * buf, int * error, int offset_size)
int or_get_oid (OR_BUF * buf, OID * oid)
int or_get_short (OR_BUF * buf, int * error)
int or_get_string_size_byte (OR_BUF * buf, int * error)
int or_get_time (OR_BUF * buf, DB_TIME * timeval)
int or_get_timestamptz (OR_BUF * buf, DB_TIMESTAMPTZ * ts_tz)
int or_get_utime (OR_BUF * buf, DB_UTIME * timeval)
int or_get_varbit_length (OR_BUF * buf, int * intval)
int or_get_varchar_compression_lengths (OR_BUF * buf, int * compressed_size, int * decompressed_size)
int or_get_varchar_length (OR_BUF * buf, int * intval)
void or_init (OR_BUF * buf, char * data, int length)
void or_multi_clear_header (char * nullmap_ptr, const int n_elements)
int or_multi_get_element_offset (char * nullmap_ptr, const int n_elements, const int index)
int or_multi_get_element_offset_internal (char * nullmap_ptr, const int n_elements, const int index)
char * or_multi_get_element_offset_ptr (char * nullmap_ptr, const int n_elements, const int index)
int or_multi_get_next_element_offset (char * nullmap_ptr, const int n_elements, const int index)
char * or_multi_get_offset_table (char * nullmap_ptr, const int n_elements)
int or_multi_get_size_offset (char * nullmap_ptr, const int n_elements)
int or_multi_header_size (const int n_elements)
bool or_multi_is_not_null (char * nullmap_ptr, const int index)
bool or_multi_is_null (char * nullmap_ptr, const int index)
int or_multi_nullmap_size (const int n_elements)
int or_multi_offset_table_size (const int n_elements)
void or_multi_put_element_offset (char * nullmap_ptr, const int n_elements, const int offset, const int index)
void or_multi_put_element_offset_internal (char * nullmap_ptr, const int n_elements, const int offset, const int index)
void or_multi_put_next_element_offset (char * nullmap_ptr, const int n_elements, const int offset, const int index)
void or_multi_put_size_offset (char * nullmap_ptr, const int n_elements, const int offset)
void or_multi_set_not_null (char * nullmap_ptr, const int index)
void or_multi_set_null (char * nullmap_ptr, const int index)
int or_pad (OR_BUF * buf, int length)
int or_put_align32 (OR_BUF * buf)
int or_put_big_var_offset (OR_BUF * buf, int num)
int or_put_bigint (OR_BUF * buf, DB_BIGINT num)
int or_put_byte (OR_BUF * buf, int num)
int or_put_data (OR_BUF * buf, const char * data, int length)
int or_put_date (OR_BUF * buf, DB_DATE * date)
int or_put_datetime (OR_BUF * buf, DB_DATETIME * datetimeval)
int or_put_datetimetz (OR_BUF * buf, DB_DATETIMETZ * datetimetz)
int or_put_double (OR_BUF * buf, double num)
int or_put_float (OR_BUF * buf, float num)
int or_put_int (OR_BUF * buf, int num)
int or_put_mvccid (OR_BUF * buf, MVCCID mvccid)
int or_put_offset (OR_BUF * buf, int num)
int or_put_offset_internal (OR_BUF * buf, int num, int offset_size)
int or_put_oid (OR_BUF * buf, const OID * oid)
int or_put_short (OR_BUF * buf, int num)
int or_put_string_aligned (OR_BUF * buf, char * string)
int or_put_string_aligned_with_length (OR_BUF * buf, const char * str)
int or_put_time (OR_BUF * buf, DB_TIME * timeval)
int or_put_timestamptz (OR_BUF * buf, DB_TIMESTAMPTZ * ts_tz)
int or_put_utime (OR_BUF * buf, DB_UTIME * timeval)
int or_seek (OR_BUF * buf, int psn)
int or_skip_varbit (OR_BUF * buf, int align)
int or_skip_varbit_remainder (OR_BUF * buf, int bitlen, int align)
int or_skip_varchar (OR_BUF * buf, int align)
int or_skip_varchar_remainder (OR_BUF * buf, int charlen, int align)
int or_varbit_length (int bitlen)
int or_varbit_length_internal (int bitlen, int align)
int or_varchar_length (int charlen)
int or_varchar_length_internal (int charlen, int align)

Macros

Type Name
define ASSERT_ALIGN (ptr, alignment) ([**assert**](malloc__2__8__3_8c.md#define-assert) ([**PTR\_ALIGN**](memory__alloc_8h.md#define-ptr_align) (ptr, alignment) == ptr))
define BIG_VAR_OFFSET_SIZE [**OR\_INT\_SIZE**](object__representation__constants_8h.md#define-or_int_size) /\* 4[**byte**](broker__monitor_8c.md#function-timeout) \*/
define BITS_TO_BYTES (bit_cnt) ((([**bit\_cnt**](broker__monitor_8c.md#function-timeout)) + 7) / 8)
define OR_ALIGNED_BUF (size) /* multi line expression */
define OR_ALIGNED_BUF_SIZE (abuf) ([**sizeof**](broker__monitor_8c.md#function-timeout) (abuf.buf))
define OR_ALIGNED_BUF_START (abuf) (abuf.buf)
define OR_BINARY_LENGTH_MASK 0xFFFF
define OR_BINARY_MAX_LENGTH 65535
define OR_BINARY_PAD_SHIFT 16
define OR_BOUND_BIT_BYTES (count) ((((count) + 31) &gt;&gt; 5) \* 4)
define OR_BOUND_BIT_FLAG 0x80000000
define OR_BOUND_BIT_MASK (element) (1 &lt;&lt; (([**int**](broker__monitor_8c.md#function-timeout)) (element) & 7))
define OR_BOUND_BIT_WORDS (count) (((count) + 31) &gt;&gt; 5)
define OR_CHECK_ADD_OVERFLOW (a, b, c) /* multi line expression */
define OR_CHECK_ASSIGN_OVERFLOW (dest, src) (((src) &gt; 0 && (dest) &lt; 0) \|\| ((src) &lt; 0 && (dest) &gt; 0))
define OR_CHECK_BIGINT_DIV_OVERFLOW (a, b) (([**a**](broker__monitor_8c.md#function-timeout)) == [**DB\_BIGINT\_MIN**](dbtype__def_8h.md#define-db_bigint_min) && (b) == -1)
define OR_CHECK_BIGINT_OVERFLOW (i) (([**i**](dynamic__load_8c.md#variable-i)) &gt; [**DB\_BIGINT\_MAX**](dbtype__def_8h.md#define-db_bigint_max) \|\| ([**i**](dynamic__load_8c.md#variable-i)) &lt; [**DB\_BIGINT\_MIN**](dbtype__def_8h.md#define-db_bigint_min))
define OR_CHECK_DOUBLE_OVERFLOW (i) (([**i**](dynamic__load_8c.md#variable-i)) &gt; [**DBL\_MAX**](broker__monitor_8c.md#function-timeout) \|\| (-([**i**](dynamic__load_8c.md#variable-i))) &gt; [**DBL\_MAX**](broker__monitor_8c.md#function-timeout))
define OR_CHECK_FLOAT_OVERFLOW (i) (([**i**](dynamic__load_8c.md#variable-i)) &gt; [**FLT\_MAX**](broker__monitor_8c.md#function-timeout) \|\| (-([**i**](dynamic__load_8c.md#variable-i))) &gt; [**FLT\_MAX**](broker__monitor_8c.md#function-timeout))
define OR_CHECK_INT_DIV_OVERFLOW (a, b) (([**a**](broker__monitor_8c.md#function-timeout)) == [**DB\_INT32\_MIN**](dbtype__def_8h.md#define-db_int32_min) && (b) == -1)
define OR_CHECK_INT_OVERFLOW (i) (([**i**](dynamic__load_8c.md#variable-i)) &gt; [**DB\_INT32\_MAX**](dbtype__def_8h.md#define-db_int32_max) \|\| ([**i**](dynamic__load_8c.md#variable-i)) &lt; [**DB\_INT32\_MIN**](dbtype__def_8h.md#define-db_int32_min))
define OR_CHECK_MULT_OVERFLOW (a, b, c) (((b) == 0) ? ((c) != 0) : ((c) / (b) != ([**a**](broker__monitor_8c.md#function-timeout))))
define OR_CHECK_SHORT_DIV_OVERFLOW (a, b) (([**a**](broker__monitor_8c.md#function-timeout)) == [**DB\_INT16\_MIN**](dbtype__def_8h.md#define-db_int16_min) && (b) == -1)
define OR_CHECK_SHORT_OVERFLOW (i) (([**i**](dynamic__load_8c.md#variable-i)) &gt; [**DB\_INT16\_MAX**](dbtype__def_8h.md#define-db_int16_max) \|\| ([**i**](dynamic__load_8c.md#variable-i)) &lt; [**DB\_INT16\_MIN**](dbtype__def_8h.md#define-db_int16_min))
define OR_CHECK_SUB_UNDERFLOW (a, b, c) /* multi line expression */
define OR_CHECK_UINT_OVERFLOW (i) (([**i**](dynamic__load_8c.md#variable-i)) &gt; [**DB\_UINT32\_MAX**](dbtype__def_8h.md#define-db_uint32_max) \|\| ([**i**](dynamic__load_8c.md#variable-i)) &lt; 0)
define OR_CHECK_UNS_ADD_OVERFLOW (a, b, c) (c) &lt; ([**a**](broker__monitor_8c.md#function-timeout)) \|\| (c) &lt; (b)
define OR_CHECK_UNS_SUB_UNDERFLOW (a, b, c) (b) &gt; ([**a**](broker__monitor_8c.md#function-timeout))
define OR_CHECK_USHRT_OVERFLOW (i) (([**i**](dynamic__load_8c.md#variable-i)) &gt; ([**int**](broker__monitor_8c.md#function-timeout)) [**DB\_UINT16\_MAX**](dbtype__def_8h.md#define-db_uint16_max) \|\| ([**i**](dynamic__load_8c.md#variable-i)) &lt; 0)
define OR_CHN_OFFSET ([**OR\_REP\_OFFSET**](object__representation_8h.md#define-or_rep_offset) + [**OR\_MVCC\_REP\_SIZE**](object__representation_8h.md#define-or_mvcc_rep_size))
define OR_CHN_SIZE 4
define OR_CLEAR_BOUND_BIT (bitptr, element) \*[**OR\_GET\_BOUND\_BIT\_BYTE**](object__representation_8h.md#define-or_get_bound_bit_byte) ([**bitptr**](broker__monitor_8c.md#function-timeout), element) = \*[**OR\_GET\_BOUND\_BIT\_BYTE**](object__representation_8h.md#define-or_get_bound_bit_byte) ([**bitptr**](broker__monitor_8c.md#function-timeout), element) & ~[**OR\_BOUND\_BIT\_MASK**](object__representation_8h.md#define-or_bound_bit_mask) (element)
define OR_ENABLE_BOUND_BIT (bitptr, element) \*[**OR\_GET\_BOUND\_BIT\_BYTE**](object__representation_8h.md#define-or_get_bound_bit_byte) ([**bitptr**](broker__monitor_8c.md#function-timeout), element) = \*[**OR\_GET\_BOUND\_BIT\_BYTE**](object__representation_8h.md#define-or_get_bound_bit_byte) ([**bitptr**](broker__monitor_8c.md#function-timeout), element) \| [**OR\_BOUND\_BIT\_MASK**](object__representation_8h.md#define-or_bound_bit_mask) (element)
define OR_FIXED_ATTRIBUTES_OFFSET (ptr, nvars) ([**OR\_FIXED\_ATTRIBUTES\_OFFSET\_INTERNAL**](object__representation_8h.md#define-or_fixed_attributes_offset_internal) (ptr, [**nvars**](broker__monitor_8c.md#function-timeout), [**BIG\_VAR\_OFFSET\_SIZE**](object__representation_8h.md#define-big_var_offset_size)))
define OR_FIXED_ATTRIBUTES_OFFSET_INTERNAL (ptr, nvars, offset_size) ([**OR\_HEADER\_SIZE**](object__representation_8h.md#define-or_header_size) (ptr) + [**OR\_VAR\_TABLE\_SIZE\_INTERNAL**](object__representation_8h.md#define-or_var_table_size_internal) ([**nvars**](broker__monitor_8c.md#function-timeout), [**offset\_size**](broker__monitor_8c.md#function-timeout)))
define OR_FIXED_ATT_IS_BOUND (obj, nvars, fsize, position) (![**OR\_GET\_BOUND\_BIT\_FLAG**](object__representation_8h.md#define-or_get_bound_bit_flag) (obj) \|\| [**OR\_GET\_BOUND\_BIT**](object__representation_8h.md#define-or_get_bound_bit) ([**OR\_GET\_BOUND\_BITS**](object__representation_8h.md#define-or_get_bound_bits) (obj, [**nvars**](broker__monitor_8c.md#function-timeout), [**fsize**](broker__monitor_8c.md#function-timeout)), position))
define OR_FIXED_ATT_IS_UNBOUND (obj, nvars, fsize, position) ([**OR\_GET\_BOUND\_BIT\_FLAG**](object__representation_8h.md#define-or_get_bound_bit_flag) (obj) && ![**OR\_GET\_BOUND\_BIT**](object__representation_8h.md#define-or_get_bound_bit) ([**OR\_GET\_BOUND\_BITS**](object__representation_8h.md#define-or_get_bound_bits) (obj, [**nvars**](broker__monitor_8c.md#function-timeout), [**fsize**](broker__monitor_8c.md#function-timeout)), position))
define OR_GET_BIGINT (ptr, val) /* multi line expression */
define OR_GET_BIG_VAR_OFFSET (ptr) [**OR\_GET\_INT**](object__representation_8h.md#define-or_get_int) ((ptr))
define OR_GET_BOUND_BIT (bitptr, element) ((\*[**OR\_GET\_BOUND\_BIT\_BYTE**](object__representation_8h.md#define-or_get_bound_bit_byte) (([**bitptr**](broker__monitor_8c.md#function-timeout)), (element))) & [**OR\_BOUND\_BIT\_MASK**](object__representation_8h.md#define-or_bound_bit_mask) ((element)))
define OR_GET_BOUND_BITS (obj, nvars, fsize) /* multi line expression */
define OR_GET_BOUND_BIT_BYTE (bitptr, element) (([**char**](broker__monitor_8c.md#function-timeout) \*) ([**bitptr**](broker__monitor_8c.md#function-timeout)) + (([**int**](broker__monitor_8c.md#function-timeout)) (element) &gt;&gt; 3))
define OR_GET_BOUND_BIT_FLAG (ptr) (([**OR\_GET\_INT**](object__representation_8h.md#define-or_get_int) ((ptr) + [**OR\_REP\_OFFSET**](object__representation_8h.md#define-or_rep_offset))) & [**OR\_BOUND\_BIT\_FLAG**](object__representation_8h.md#define-or_bound_bit_flag))
define OR_GET_BTID (ptr, btid) /* multi line expression */
define OR_GET_BYTE (ptr) (\*([**unsigned**](broker__monitor_8c.md#function-timeout) [**char**](broker__monitor_8c.md#function-timeout) \*) (([**char**](broker__monitor_8c.md#function-timeout) \*) (ptr)))
define OR_GET_CURRENCY_TYPE (ptr) ([**DB\_CURRENCY**](dbtype__def_8h.md#enum-db_currency)) [**OR\_GET\_INT**](object__representation_8h.md#define-or_get_int) ((([**char**](broker__monitor_8c.md#function-timeout) \*) (ptr)) + [**OR\_MONETARY\_TYPE**](object__representation__constants_8h.md#define-or_monetary_type))
define OR_GET_DATE (ptr, value) \*(([**DB\_DATE**](dbtype__def_8h.md#typedef-db_date) \*) (value)) = [**OR\_GET\_INT**](object__representation_8h.md#define-or_get_int) (ptr)
define OR_GET_DATETIME (ptr, datetime) /* multi line expression */
define OR_GET_DATETIMETZ (ptr, datetimetz) /* multi line expression */
define OR_GET_DOUBLE (ptr, value) (\*(value) = [**ntohd**](byte__order_8c.md#function-ntohd) (\*([**UINT64**](broker__monitor_8c.md#function-timeout) \*) (ptr)))
define OR_GET_EHID (ptr, ehid) /* multi line expression */
define OR_GET_FLOAT (ptr, value) (\*(value) = [**ntohf**](byte__order_8c.md#function-ntohf) (\*([**UINT32**](broker__monitor_8c.md#function-timeout) \*) (ptr)))
define OR_GET_HFID (ptr, hfid) /* multi line expression */
define OR_GET_INT (ptr) (([**int**](broker__monitor_8c.md#function-timeout)) [**ntohl**](byte__order_8c.md#function-ntohl) (\*([**int**](broker__monitor_8c.md#function-timeout) \*) (([**char**](broker__monitor_8c.md#function-timeout) \*) (ptr))))
define OR_GET_INT64 (ptr, val) /* multi line expression */
define OR_GET_LOG_LSA (ptr, lsa) /* multi line expression */
define OR_GET_MONETARY (ptr, value) /* multi line expression */
define OR_GET_MVCCID [**OR\_GET\_BIGINT**](object__representation_8h.md#define-or_get_bigint)
define OR_GET_MVCC_CHN (ptr) ([**OR\_GET\_INT**](object__representation_8h.md#define-or_get_int) (([**char**](broker__monitor_8c.md#function-timeout) \*) (ptr) + [**OR\_CHN\_OFFSET**](object__representation_8h.md#define-or_chn_offset)))
define OR_GET_MVCC_DELETE_ID (ptr, mvcc_flags, valp) /* multi line expression */
define OR_GET_MVCC_FLAG (ptr) /* multi line expression */
define OR_GET_MVCC_INSERT_ID (ptr, mvcc_flags, valp) /* multi line expression */
define OR_GET_MVCC_REPID (ptr) /* multi line expression */
define OR_GET_MVCC_REPID_AND_FLAG (ptr) ([**OR\_GET\_INT**](object__representation_8h.md#define-or_get_int) ((([**char**](broker__monitor_8c.md#function-timeout) \*) (ptr)) + [**OR\_REP\_OFFSET**](object__representation_8h.md#define-or_rep_offset)))
define OR_GET_OBJECT_VAR_TABLE (obj) (([**short**](broker__monitor_8c.md#function-timeout) \*) ((([**char**](broker__monitor_8c.md#function-timeout) \*) (obj)) + [**OR\_HEADER\_SIZE**](object__representation_8h.md#define-or_header_size) (([**char**](broker__monitor_8c.md#function-timeout) \*) (obj))))
define OR_GET_OFFSET (ptr) [**OR\_GET\_BIG\_VAR\_OFFSET**](object__representation_8h.md#define-or_get_big_var_offset) ((ptr))
define OR_GET_OFFSET_INTERNAL (ptr, offset_size) /* multi line expression */
define OR_GET_OFFSET_SIZE (ptr) /* multi line expression */
define OR_GET_OID (ptr, oid) /* multi line expression */
define OR_GET_PTR (ptr) (([**UINTPTR**](broker__monitor_8c.md#function-timeout)) [**swap64**](byte__order_8h.md#define-swap64) (\*([**UINTPTR**](broker__monitor_8c.md#function-timeout) \*) (([**char**](broker__monitor_8c.md#function-timeout) \*) (ptr))))
define OR_GET_REPID (ptr) (([**OR\_GET\_INT**](object__representation_8h.md#define-or_get_int) ((ptr) + [**OR\_REP\_OFFSET**](object__representation_8h.md#define-or_rep_offset))) & ~[**OR\_BOUND\_BIT\_FLAG**](object__representation_8h.md#define-or_bound_bit_flag) & ~[**OR\_OFFSET\_SIZE\_FLAG**](object__representation__constants_8h.md#define-or_offset_size_flag))
define OR_GET_SET_BOUND_BITS (setptr) ([**int**](broker__monitor_8c.md#function-timeout) \*) (([**char**](broker__monitor_8c.md#function-timeout) \*) ([**setptr**](broker__monitor_8c.md#function-timeout)) + [**OR\_SET\_HEADER\_SIZE**](object__representation_8h.md#define-or_set_header_size))
define OR_GET_SET_VAR_TABLE (setptr) (([**int**](broker__monitor_8c.md#function-timeout) \*) (([**char**](broker__monitor_8c.md#function-timeout) \*) ([**setptr**](broker__monitor_8c.md#function-timeout)) + [**OR\_SET\_HEADER\_SIZE**](object__representation_8h.md#define-or_set_header_size)))
define OR_GET_SHA1 (ptr, value) /* multi line expression */
define OR_GET_SHORT (ptr) (([**short**](broker__monitor_8c.md#function-timeout)) [**ntohs**](byte__order_8c.md#function-ntohs) (\*([**short**](broker__monitor_8c.md#function-timeout) \*) (([**char**](broker__monitor_8c.md#function-timeout) \*) (ptr))))
define OR_GET_STRING (ptr) (([**char**](broker__monitor_8c.md#function-timeout) \*) (([**char**](broker__monitor_8c.md#function-timeout) \*) (ptr)))
define OR_GET_TIME (ptr, value) \*(([**DB\_TIME**](dbtype__def_8h.md#typedef-db_time) \*) (value)) = [**OR\_GET\_INT**](object__representation_8h.md#define-or_get_int) (ptr)
define OR_GET_TIMESTAMPTZ (ptr, ts_tz) /* multi line expression */
define OR_GET_UTIME (ptr, value) \*(([**DB\_UTIME**](dbtype__def_8h.md#typedef-db_utime) \*) (value)) = [**OR\_GET\_INT**](object__representation_8h.md#define-or_get_int) (ptr)
define OR_GET_VARIABLE_TYPE (ptr) ([**OR\_GET\_INT**](object__representation_8h.md#define-or_get_int) (([**int**](broker__monitor_8c.md#function-timeout) \*) (ptr)))
define OR_GET_VPID (ptr, vpid) /* multi line expression */
define OR_HEADER_SIZE (ptr) ([**or\_header\_size**](object__representation_8h.md#function-or_header_size) (([**char**](broker__monitor_8c.md#function-timeout) \*) (ptr)))
define OR_INFINITE_POINTER (([**void**](broker__monitor_8c.md#function-timeout) \*) (~(([**UINTPTR**](broker__monitor_8c.md#function-timeout)) 0UL)))
define OR_IS_STRING_LENGTH_COMPRESSABLE (str_length) (([**str\_length**](broker__monitor_8c.md#function-timeout)) &gt;= [**OR\_MINIMUM\_STRING\_LENGTH\_FOR\_COMPRESSION**](object__representation_8h.md#define-or_minimum_string_length_for_compression) && ([**str\_length**](broker__monitor_8c.md#function-timeout)) &lt;= [**LZ4\_MAX\_INPUT\_SIZE**](broker__monitor_8c.md#function-timeout))
define OR_MINIMUM_STRING_LENGTH_FOR_COMPRESSION 255
define OR_MOVE_MONETARY (src, dst) /* multi line expression */
define OR_MVCCID_SIZE [**OR\_BIGINT\_SIZE**](object__representation__constants_8h.md#define-or_bigint_size)
define OR_MVCC_DELETE_ID_OFFSET (mvcc_flags) ([**OR\_MVCC\_INSERT\_ID\_OFFSET**](object__representation_8h.md#define-or_mvcc_insert_id_offset) + ((([**mvcc\_flags**](broker__monitor_8c.md#function-timeout)) & [**OR\_MVCC\_FLAG\_VALID\_INSID**](object__representation__constants_8h.md#define-or_mvcc_flag_valid_insid)) ? [**OR\_MVCC\_INSERT\_ID\_SIZE**](object__representation_8h.md#define-or_mvcc_insert_id_size) : 0))
define OR_MVCC_DELETE_ID_SIZE 8
define OR_MVCC_FLAG_OFFSET [**OR\_REP\_OFFSET**](object__representation_8h.md#define-or_rep_offset)
define OR_MVCC_FLAG_SIZE [**OR\_MVCC\_REP\_SIZE**](object__representation_8h.md#define-or_mvcc_rep_size)
define OR_MVCC_INSERT_ID_OFFSET ([**OR\_CHN\_OFFSET**](object__representation_8h.md#define-or_chn_offset) + [**OR\_CHN\_SIZE**](object__representation_8h.md#define-or_chn_size))
define OR_MVCC_INSERT_ID_SIZE 8
define OR_MVCC_PREV_VERSION_LSA_OFFSET (mvcc_flags) ([**OR\_MVCC\_DELETE\_ID\_OFFSET**](object__representation_8h.md#define-or_mvcc_delete_id_offset)([**mvcc\_flags**](broker__monitor_8c.md#function-timeout)) + ((([**mvcc\_flags**](broker__monitor_8c.md#function-timeout)) & [**OR\_MVCC\_FLAG\_VALID\_DELID**](object__representation__constants_8h.md#define-or_mvcc_flag_valid_delid)) ? [**OR\_MVCC\_DELETE\_ID\_SIZE**](object__representation_8h.md#define-or_mvcc_delete_id_size) : 0))
define OR_MVCC_PREV_VERSION_LSA_SIZE 8
define OR_MVCC_REP_SIZE 4
define OR_PACK_DOMAIN_OBJECT_TO_OID (p, d, o, n) /* multi line expression */
define OR_PUT_BIGINT (ptr, val) /* multi line expression */
define OR_PUT_BIG_VAR_OFFSET (ptr, val) [**OR\_PUT\_INT**](object__representation_8h.md#define-or_put_int) ((ptr), (val))
define OR_PUT_BTID (ptr, btid) /* multi line expression */
define OR_PUT_BYTE (ptr, val) (\*(([**unsigned**](broker__monitor_8c.md#function-timeout) [**char**](broker__monitor_8c.md#function-timeout) \*) (ptr)) = ([**unsigned**](broker__monitor_8c.md#function-timeout) [**char**](broker__monitor_8c.md#function-timeout)) (val))
define OR_PUT_DATE (ptr, value) [**OR\_PUT\_INT**](object__representation_8h.md#define-or_put_int) (ptr, \*(([**DB\_DATE**](dbtype__def_8h.md#typedef-db_date) \*) (value)))
define OR_PUT_DATETIME (ptr, datetime) /* multi line expression */
define OR_PUT_DATETIMETZ (ptr, datetimetz) /* multi line expression */
define OR_PUT_EHID (ptr, ehid) /* multi line expression */
define OR_PUT_HFID (ptr, hfid) /* multi line expression */
define OR_PUT_INT (ptr, val) (\*([**int**](broker__monitor_8c.md#function-timeout) \*) (([**char**](broker__monitor_8c.md#function-timeout) \*) (ptr)) = [**htonl**](byte__order_8c.md#function-htonl) (([**int**](broker__monitor_8c.md#function-timeout)) (val)))
define OR_PUT_INT64 (ptr, val) /* multi line expression */
define OR_PUT_LOG_LSA (ptr, lsa) /* multi line expression */
define OR_PUT_MONETARY (ptr, value) /* multi line expression */
define OR_PUT_MVCCID [**OR\_PUT\_BIGINT**](object__representation_8h.md#define-or_put_bigint)
define OR_PUT_NULL_BTID (ptr) /* multi line expression */
define OR_PUT_NULL_HFID (ptr) /* multi line expression */
define OR_PUT_NULL_LOG_LSA (ptr) /* multi line expression */
define OR_PUT_NULL_OID (ptr) /* multi line expression */
define OR_PUT_OFFSET (ptr, val) [**OR\_PUT\_BIG\_VAR\_OFFSET**](object__representation_8h.md#define-or_put_big_var_offset) ((ptr), (val))
define OR_PUT_OFFSET_INTERNAL (ptr, val, offset_size) /* multi line expression */
define OR_PUT_OID (ptr, oid) /* multi line expression */
define OR_PUT_PTR (ptr, val) (\*([**UINTPTR**](broker__monitor_8c.md#function-timeout) \*) (([**char**](broker__monitor_8c.md#function-timeout) \*) (ptr)) = [**swap64**](byte__order_8h.md#define-swap64) (([**UINTPTR**](broker__monitor_8c.md#function-timeout)) val))
define OR_PUT_SHA1 (ptr, value) /* multi line expression */
define OR_PUT_SHORT (ptr, val) (\*([**short**](broker__monitor_8c.md#function-timeout) \*) (([**char**](broker__monitor_8c.md#function-timeout) \*) (ptr)) = [**htons**](byte__order_8c.md#function-htons) (([**short**](broker__monitor_8c.md#function-timeout)) (val)))
define OR_PUT_TIME (ptr, value) [**OR\_PUT\_INT**](object__representation_8h.md#define-or_put_int) (ptr, \*(([**DB\_TIME**](dbtype__def_8h.md#typedef-db_time) \*) (value)))
define OR_PUT_TIMESTAMPTZ (ptr, ts_tz) /* multi line expression */
define OR_PUT_UTIME (ptr, value) [**OR\_PUT\_INT**](object__representation_8h.md#define-or_put_int) (ptr, \*(([**DB\_UTIME**](dbtype__def_8h.md#typedef-db_utime) \*) (value)))
define OR_PUT_VPID (ptr, vpid) /* multi line expression */
define OR_PUT_VPID_ALIGNED (ptr, vpid) /* multi line expression */
define OR_REP_OFFSET 0
define OR_SET_BOUND_BIT 0x10000
define OR_SET_COMMON_SUB_BIT 0x100000
define OR_SET_DOMAIN_BIT 0x40000
define OR_SET_DOMAIN_SIZE (setptr) (([**OR\_GET\_INT**](object__representation_8h.md#define-or_get_int) (([**char**](broker__monitor_8c.md#function-timeout) \*) ([**setptr**](broker__monitor_8c.md#function-timeout)) + [**OR\_SET\_DOMAIN\_SIZE\_OFFSET**](object__representation_8h.md#define-or_set_domain_size_offset))))
define OR_SET_DOMAIN_SIZE_OFFSET 8
define OR_SET_ELEMENT_COUNT (setptr) (([**OR\_GET\_INT**](object__representation_8h.md#define-or_get_int) (([**char**](broker__monitor_8c.md#function-timeout) \*) ([**setptr**](broker__monitor_8c.md#function-timeout)) + [**OR\_SET\_SIZE\_OFFSET**](object__representation_8h.md#define-or_set_size_offset))))
define OR_SET_ELEMENT_OFFSET (setptr, element) ([**OR\_VAR\_TABLE\_ELEMENT\_OFFSET\_INTERNAL**](object__representation_8h.md#define-or_var_table_element_offset_internal) ([**OR\_GET\_SET\_VAR\_TABLE**](object__representation_8h.md#define-or_get_set_var_table) ([**setptr**](broker__monitor_8c.md#function-timeout)), element, [**BIG\_VAR\_OFFSET\_SIZE**](object__representation_8h.md#define-big_var_offset_size)))
define OR_SET_ELEMENT_TYPE (setptr) ([**DB\_TYPE**](dbtype__def_8h.md#enum-db_type)) (([**OR\_GET\_INT**](object__representation_8h.md#define-or_get_int) (([**char**](broker__monitor_8c.md#function-timeout) \*) ([**setptr**](broker__monitor_8c.md#function-timeout))) & [**OR\_SET\_ETYPE\_MASK**](object__representation_8h.md#define-or_set_etype_mask)) &gt;&gt; [**OR\_SET\_ETYPE\_SHIFT**](object__representation_8h.md#define-or_set_etype_shift))
define OR_SET_ETYPE_MASK 0xFF00
define OR_SET_ETYPE_SHIFT 8
define OR_SET_HAS_BOUND_BITS (setptr) ([**OR\_GET\_INT**](object__representation_8h.md#define-or_get_int) (([**char**](broker__monitor_8c.md#function-timeout) \*) ([**setptr**](broker__monitor_8c.md#function-timeout))) & [**OR\_SET\_BOUND\_BIT**](object__representation_8h.md#define-or_set_bound_bit))
define OR_SET_HAS_DOMAIN (setptr) ([**OR\_GET\_INT**](object__representation_8h.md#define-or_get_int) (([**char**](broker__monitor_8c.md#function-timeout) \*) ([**setptr**](broker__monitor_8c.md#function-timeout))) & [**OR\_SET\_DOMAIN\_BIT**](object__representation_8h.md#define-or_set_domain_bit))
define OR_SET_HAS_ELEMENT_TAGS (setptr) ([**OR\_GET\_INT**](object__representation_8h.md#define-or_get_int) (([**char**](broker__monitor_8c.md#function-timeout) \*) ([**setptr**](broker__monitor_8c.md#function-timeout))) & [**OR\_SET\_TAG\_BIT**](object__representation_8h.md#define-or_set_tag_bit))
define OR_SET_HAS_OFFSET_TABLE (setptr) ([**OR\_GET\_INT**](object__representation_8h.md#define-or_get_int) (([**char**](broker__monitor_8c.md#function-timeout) \*) ([**setptr**](broker__monitor_8c.md#function-timeout))) & [**OR\_SET\_VARIABLE\_BIT**](object__representation_8h.md#define-or_set_variable_bit))
define OR_SET_HEADER_SIZE 8
define OR_SET_SIZE_OFFSET 4
define OR_SET_TAG_BIT 0x80000
define OR_SET_TYPE (setptr) ([**DB\_TYPE**](dbtype__def_8h.md#enum-db_type)) (([**OR\_GET\_INT**](object__representation_8h.md#define-or_get_int) (([**char**](broker__monitor_8c.md#function-timeout) \*) ([**setptr**](broker__monitor_8c.md#function-timeout)))) & [**OR\_SET\_TYPE\_MASK**](object__representation_8h.md#define-or_set_type_mask))
define OR_SET_TYPE_MASK 0xFF
define OR_SET_VARIABLE_BIT 0x20000
define OR_SET_VAR_OFFSET_SIZE (val, offset_size) /* multi line expression */
define OR_SUB_DOMAIN_SIZE [**OR\_INT\_SIZE**](object__representation__constants_8h.md#define-or_int_size)
define OR_SUB_HEADER_SIZE [**OR\_OID\_SIZE**](object__representation__constants_8h.md#define-or_oid_size) + [**OR\_INT\_SIZE**](object__representation__constants_8h.md#define-or_int_size) + [**OR\_INT\_SIZE**](object__representation__constants_8h.md#define-or_int_size)
define OR_VALUE_ALIGNED_SIZE (value) ([**or\_db\_value\_size**](object__representation_8h.md#function-or_db_value_size) (value) + [**MAX\_ALIGNMENT**](memory__alloc_8h.md#define-max_alignment))
define OR_VARIABLE_HEADER_SIZE 4
define OR_VAR_ELEMENT_PTR (obj, index) ([**OR\_VAR\_TABLE\_ELEMENT\_PTR**](object__representation_8h.md#define-or_var_table_element_ptr) ([**OR\_GET\_OBJECT\_VAR\_TABLE**](object__representation_8h.md#define-or_get_object_var_table) (obj), index, [**OR\_GET\_OFFSET\_SIZE**](object__representation_8h.md#define-or_get_offset_size) (obj)))
define OR_VAR_IS_NULL (obj, index) /* multi line expression */
define OR_VAR_LENGTH (length, obj, index, n_variables) /* multi line expression */
define OR_VAR_OFFSET (obj, index) /* multi line expression */
define OR_VAR_TABLE_ELEMENT_LENGTH_INTERNAL (table, index, offset_size) /* multi line expression */
define OR_VAR_TABLE_ELEMENT_OFFSET_INTERNAL (table, index, offset_size) /* multi line expression */
define OR_VAR_TABLE_ELEMENT_PTR (table, index, offset_size) /* multi line expression */
define OR_VAR_TABLE_SIZE (vars) ([**OR\_VAR\_TABLE\_SIZE\_INTERNAL**](object__representation_8h.md#define-or_var_table_size_internal) ([**vars**](broker__monitor_8c.md#function-timeout), [**BIG\_VAR\_OFFSET\_SIZE**](object__representation_8h.md#define-big_var_offset_size)))
define OR_VAR_TABLE_SIZE_INTERNAL (vars, offset_size) ((([**vars**](broker__monitor_8c.md#function-timeout)) == 0) ? 0 : [**DB\_ALIGN**](memory__alloc_8h.md#define-db_align) (([**offset\_size**](broker__monitor_8c.md#function-timeout) \* (([**vars**](broker__monitor_8c.md#function-timeout)) + 1)), [**INT\_ALIGNMENT**](memory__alloc_8h.md#define-int_alignment)))
define SHORT_VAR_OFFSET_SIZE [**OR\_SHORT\_SIZE**](object__representation__constants_8h.md#define-or_short_size) /\* 2[**byte**](broker__monitor_8c.md#function-timeout) \*/

Public Types Documentation

typedef DB_BINARY

typedef struct db_binary DB_BINARY;

typedef DB_REFERENCE

typedef struct db_reference DB_REFERENCE;

typedef OR_BUF

typedef struct or_buf OR_BUF;

typedef OR_VARINFO

typedef struct or_varinfo OR_VARINFO;

typedef SETOBJ

typedef struct setobj SETOBJ;

typedef SETREF

typedef struct db_set SETREF;

enum object__representation_8h_1a05589fbab0657f08285ebdfe93f5ec9e

enum object__representation_8h_1a05589fbab0657f08285ebdfe93f5ec9e {
    ORC_REP_ID_OFFSET = 0,
    ORC_REP_FIXED_COUNT_OFFSET = 4,
    ORC_REP_VARIABLE_COUNT_OFFSET = 8
};

enum object__representation_8h_1a16af7b253440dadd46a80a4b9fddba4d

enum object__representation_8h_1a16af7b253440dadd46a80a4b9fddba4d {
    ORC_REP_ATTRIBUTES_INDEX = 0,
    ORC_REP_PROPERTIES_INDEX = 1,
    ORC_REP_LAST_INDEX,
    ORC_REP_VAR_ATT_COUNT = ORC_REP_LAST_INDEX
};

enum object__representation_8h_1a385c44f6fb256e5716a2302a5b940388

enum object__representation_8h_1a385c44f6fb256e5716a2302a5b940388 {
    ORC_NAME_INDEX = 0,
    ORC_LOADER_COMMANDS_INDEX = 1,
    ORC_REPRESENTATIONS_INDEX = 2,
    ORC_SUBCLASSES_INDEX = 3,
    ORC_SUPERCLASSES_INDEX = 4,
    ORC_ATTRIBUTES_INDEX = 5,
    ORC_SHARED_ATTRS_INDEX = 6,
    ORC_CLASS_ATTRS_INDEX = 7,
    ORC_METHODS_INDEX = 8,
    ORC_CLASS_METHODS_INDEX = 9,
    ORC_METHOD_FILES_INDEX = 10,
    ORC_RESOLUTIONS_INDEX = 11,
    ORC_QUERY_SPEC_INDEX = 12,
    ORC_TRIGGERS_INDEX = 13,
    ORC_PROPERTIES_INDEX = 14,
    ORC_COMMENT_INDEX = 15,
    ORC_PARTITION_INDEX = 16,
    ORC_LAST_INDEX,
    ORC_CLASS_VAR_ATT_COUNT = ORC_LAST_INDEX
};

enum object__representation_8h_1a39fca1837c5ce7715cbf571669660c13

enum object__representation_8h_1a39fca1837c5ce7715cbf571669660c13 {
    ORC_METHFILE_NAME_INDEX = 0,
    ORC_METHFILE_PROPERTIES_INDEX = 1,
    ORC_METHFILE_LAST_INDEX,
    ORC_METHFILE_VAR_ATT_COUNT = ORC_METHFILE_LAST_INDEX
};

enum object__representation_8h_1a6b7b47dd702d9e331586d485013fd1ea

enum object__representation_8h_1a6b7b47dd702d9e331586d485013fd1ea {
    ORC_DOMAIN_SETDOMAIN_INDEX = 0,
    ORC_DOMAIN_ENUMERATION_INDEX = 1,
    ORC_DOMAIN_SCHEMA_JSON_OFFSET = 2,
    ORC_DOMAIN_LAST_INDEX,
    ORC_DOMAIN_VAR_ATT_COUNT = ORC_DOMAIN_LAST_INDEX
};

enum object__representation_8h_1a80155586fa275b28773c9b203f52caba

enum object__representation_8h_1a80155586fa275b28773c9b203f52caba {
    ORC_DOMAIN_TYPE_OFFSET = 0,
    ORC_DOMAIN_PRECISION_OFFSET = 4,
    ORC_DOMAIN_SCALE_OFFSET = 8,
    ORC_DOMAIN_CODESET_OFFSET = 12,
    ORC_DOMAIN_COLLATION_ID_OFFSET = 16,
    ORC_DOMAIN_CLASS_OFFSET = 20
};

enum object__representation_8h_1a94798fdadfbf49a7c658ace669a1d310

enum object__representation_8h_1a94798fdadfbf49a7c658ace669a1d310 {
    ORC_RES_NAME_INDEX = 0,
    ORC_RES_ALIAS_INDEX = 1,
    ORC_RES_LAST_INDEX,
    ORC_RES_VAR_ATT_COUNT = ORC_RES_LAST_INDEX
};

enum object__representation_8h_1aae05225933a42f81e7c4a9fb286596f9

enum object__representation_8h_1aae05225933a42f81e7c4a9fb286596f9 {
    ORC_METHSIG_FUNCTION_NAME_INDEX = 0,
    ORC_METHSIG_SQL_DEF_INDEX = 1,
    ORC_METHSIG_RETURN_VALUE_INDEX = 2,
    ORC_METHSIG_ARGUMENTS_INDEX = 3,
    ORC_METHSIG_LAST_INDEX,
    ORC_METHSIG_VAR_ATT_COUNT = ORC_METHSIG_LAST_INDEX
};

enum object__representation_8h_1aaf105ae5beaca1dee30ae54530691fce

enum object__representation_8h_1aaf105ae5beaca1dee30ae54530691fce {
    ORC_REPATT_DOMAIN_INDEX = 0,
    ORC_REPATT_LAST_INDEX,
    ORC_REPATT_VAR_ATT_COUNT = ORC_REPATT_LAST_INDEX
};

enum object__representation_8h_1aaf8fd5f0e57d456151c951e0f3715fc4

enum object__representation_8h_1aaf8fd5f0e57d456151c951e0f3715fc4 {
    ORC_QUERY_SPEC_SPEC_INDEX = 0,
    ORC_QUERY_LAST_INDEX,
    ORC_QUERY_SPEC_VAR_ATT_COUNT = ORC_QUERY_LAST_INDEX
};

enum object__representation_8h_1ab04a0655cd1e3bcac5e8f48c18df1a57

enum object__representation_8h_1ab04a0655cd1e3bcac5e8f48c18df1a57 {
    ORC_REP_DIR_OFFSET = 8,
    ORC_HFID_FILEID_OFFSET = 16,
    ORC_HFID_VOLID_OFFSET = 20,
    ORC_HFID_PAGEID_OFFSET = 24,
    ORC_FIXED_COUNT_OFFSET = 28,
    ORC_VARIABLE_COUNT_OFFSET = 32,
    ORC_FIXED_LENGTH_OFFSET = 36,
    ORC_ATT_COUNT_OFFSET = 40,
    ORC_SHARED_COUNT_OFFSET = 48,
    ORC_CLASS_ATTR_COUNT_OFFSET = 60,
    ORC_CLASS_FLAGS = 64,
    ORC_CLASS_TYPE = 68,
    ORC_CLASS_TDE_ALGORITHM = 84
};

enum object__representation_8h_1aba01db17f4a2bfbc3db60dc172972a25

enum object__representation_8h_1aba01db17f4a2bfbc3db60dc172972a25 {
    ORC_REPATT_ID_OFFSET = 0,
    ORC_REPATT_TYPE_OFFSET = 4
};

enum object__representation_8h_1abc5c98fcc1211af2b80116dd6e0a035d

enum object__representation_8h_1abc5c98fcc1211af2b80116dd6e0a035d {
    ORC_ATT_ID_OFFSET = 0,
    ORC_ATT_TYPE_OFFSET = 4,
    ORC_ATT_DEF_ORDER_OFFSET = 12,
    ORC_ATT_CLASS_OFFSET = 16,
    ORC_ATT_FLAG_OFFSET = 24,
    ORC_ATT_INDEX_OFFSET = 28
};

enum object__representation_8h_1ac36f475ca5b446f4fde4c9b90bec77c8

enum object__representation_8h_1ac36f475ca5b446f4fde4c9b90bec77c8 {
    ORC_ATT_NAME_INDEX = 0,
    ORC_ATT_CURRENT_VALUE_INDEX = 1,
    ORC_ATT_ORIGINAL_VALUE_INDEX = 2,
    ORC_ATT_DOMAIN_INDEX = 3,
    ORC_ATT_TRIGGER_INDEX = 4,
    ORC_ATT_PROPERTIES_INDEX = 5,
    ORC_ATT_COMMENT_INDEX = 6,
    ORC_ATT_LAST_INDEX,
    ORC_ATT_VAR_ATT_COUNT = ORC_ATT_LAST_INDEX
};

enum object__representation_8h_1adb49720dc49f7d4e4cf9adbf2948e409

enum object__representation_8h_1adb49720dc49f7d4e4cf9adbf2948e409 {
    ORC_METHARG_DOMAIN_INDEX = 0,
    ORC_METHARG_LAST_INDEX,
    ORC_METHARG_VAR_ATT_COUNT = ORC_METHARG_LAST_INDEX
};

enum object__representation_8h_1ae4d5251432e1a9e6803c0240cc492e18

enum object__representation_8h_1ae4d5251432e1a9e6803c0240cc492e18 {
    ORC_PARTITION_NAME_INDEX = 0,
    ORC_PARTITION_EXPR_INDEX = 1,
    ORC_PARTITION_VALUES_INDEX = 2,
    ORC_PARTITION_COMMENT_INDEX = 3,
    ORC_PARTITION_LAST_INDEX,
    ORC_PARTITION_VAR_ATT_COUNT = ORC_PARTITION_LAST_INDEX
};

enum object__representation_8h_1af9bdc3014f3d54c426b6d2df10de4960

enum object__representation_8h_1af9bdc3014f3d54c426b6d2df10de4960 {
    ORC_METHOD_NAME_INDEX = 0,
    ORC_METHOD_SIGNATURE_INDEX = 1,
    ORC_METHOD_PROPERTIES_INDEX = 2,
    ORC_METHOD_LAST_INDEX,
    ORC_METHOD_VAR_ATT_COUNT = ORC_METHOD_LAST_INDEX
};

Public Functions Documentation

function classobj_decompose_property_oid

int classobj_decompose_property_oid (
    const  char * buffer,
    int * volid,
    int * fileid,
    int * pageid
) 

function classobj_get_prop

int classobj_get_prop (
    DB_SEQ * properties,
    const  char * name,
    DB_VALUE * pvalue
) 

function classobj_initialize_default_expr

void classobj_initialize_default_expr (
    DB_DEFAULT_EXPR * default_expr
) 

function db_enum_put_cs_and_collation

int db_enum_put_cs_and_collation (
    DB_VALUE * value,
    const  int codeset,
    const  int collation_id
) 

function db_string_put_cs_and_collation

int db_string_put_cs_and_collation (
    DB_VALUE * value,
    const  int codeset,
    const  int collation_id
) 

function or_align_length

int or_align_length (
    int length
) 

function or_chn

int or_chn (
    RECDES * record
) 

function or_class_name

char * or_class_name (
    RECDES * record
) 

function or_db_value_size

int or_db_value_size (
    DB_VALUE * var
) 

function or_decode

void or_decode (
    const  char * buffer,
    char * dest,
    int size
) 

function or_disk_set_size

int or_disk_set_size (
    OR_BUF * buf,
    struct  tp_domain * domain,
    DB_TYPE * set_type
) 

function or_elo_length

int or_elo_length (
    void * elo_ptr
) 

function or_encode

void or_encode (
    char * buffer,
    const  char * source,
    int size
) 

function or_get_bound_bit

int or_get_bound_bit (
    char * bound_bits,
    int element
) 

function or_get_domain

struct  tp_domain * or_get_domain (
    OR_BUF * buf,
    struct  tp_domain * dom,
    int * is_null
) 

function or_get_enumeration

int or_get_enumeration (
    OR_BUF * buf,
    DB_ENUMERATION * e
) 

function or_get_json_schema

int or_get_json_schema (
    OR_BUF * buf,
    REFPTR ( char , schema)
) 

function or_get_json_validator

int or_get_json_validator (
    OR_BUF * buf,
    REFPTR ( JSON_VALIDATOR , validator )
) 

function or_get_monetary

int or_get_monetary (
    OR_BUF * buf,
    DB_MONETARY * monetary
) 

function or_get_set

setobj * or_get_set (
    OR_BUF * buf,
    struct  tp_domain * domain
) 

function or_get_set_header

int or_get_set_header (
    OR_BUF * buf,
    DB_TYPE * set_type,
    int * size,
    int * domain,
    int * bound_bits,
    int * offset_table,
    int * element_tags,
    int * common_sub_header
) 

function or_get_value

int or_get_value (
    OR_BUF * buf,
    DB_VALUE * value,
    struct  tp_domain * domain,
    int expected,
    bool copy
) 

function or_get_var_table

OR_VARINFO * or_get_var_table (
    OR_BUF * buf,
    int nvars,
    char *(*)( int ) allocator
) 

function or_get_var_table_internal

OR_VARINFO * or_get_var_table_internal (
    OR_BUF * buf,
    int nvars,
    char *(*)( int ) allocator,
    int offset_size
) 

function or_get_varbit

char * or_get_varbit (
    OR_BUF * buf,
    int * length_ptr
) 

function or_get_varchar

char * or_get_varchar (
    OR_BUF * buf,
    int * length_ptr
) 

function or_header_size

int or_header_size (
    char * ptr
) 

function or_length_binary

int or_length_binary (
    DB_BINARY * binary
) 

function or_length_string

int or_length_string (
    char * string
) 

function or_listid_length

int or_listid_length (
    void * listid
) 

function or_mvcc_get_repid_and_flags

int or_mvcc_get_repid_and_flags (
    OR_BUF * buf,
    int * error
) 

function or_mvcc_set_repid_and_flags

int or_mvcc_set_repid_and_flags (
    OR_BUF * buf,
    int mvcc_flag,
    int repid,
    int bound_bit,
    int variable_offset_size
) 

function or_pack_bigint

char * or_pack_bigint (
    char * ptr,
    DB_BIGINT number
) 

function or_pack_bool_array

char * or_pack_bool_array (
    char * ptr,
    const  bool * bools,
    int size
) 

function or_pack_btid

char * or_pack_btid (
    char * buf,
    const  BTID * btid
) 

function or_pack_date

char * or_pack_date (
    char * ptr,
    DB_DATE date
) 

function or_pack_db_value

char * or_pack_db_value (
    char * buffer,
    DB_VALUE * var
) 

function or_pack_db_value_array

char * or_pack_db_value_array (
    char * buffer,
    int count,
    DB_VALUE * val
) 

function or_pack_domain

char * or_pack_domain (
    char * ptr,
    struct  tp_domain * domain,
    int include_classoids,
    int is_null
) 

function or_pack_double

char * or_pack_double (
    char * ptr,
    double number
) 

function or_pack_ehid

char * or_pack_ehid (
    char * buf,
    EHID * btid
) 

function or_pack_elo

char * or_pack_elo (
    char * ptr,
    void * elo
) 

function or_pack_errcode

char * or_pack_errcode (
    char * ptr,
    int error
) 

function or_pack_float

char * or_pack_float (
    char * ptr,
    float number
) 

function or_pack_hfid

char * or_pack_hfid (
    const  char * ptr,
    const  HFID * hfid
) 

function or_pack_int

char * or_pack_int (
    char * ptr,
    int number
) 

function or_pack_int64

char * or_pack_int64 (
    char * ptr,
    INT64 number
) 

function or_pack_int_array

char * or_pack_int_array (
    char * buffer,
    int count,
    const  int * int_array
) 

function or_pack_key_val_range

char * or_pack_key_val_range (
    char * ptr,
    const  void * key_val_range_ptr
) 

function or_pack_listid

char * or_pack_listid (
    char * ptr,
    void * listid
) 

function or_pack_lock

char * or_pack_lock (
    char * ptr,
    LOCK lock
) 

function or_pack_log_lsa

char * or_pack_log_lsa (
    const  char * ptr,
    const  struct  log_lsa * lsa
) 

function or_pack_mem_value

char * or_pack_mem_value (
    char * ptr,
    DB_VALUE * value,
    int * packed_len_except_alignment
) 

function or_pack_monetary

char * or_pack_monetary (
    char * ptr,
    DB_MONETARY * money
) 

function or_pack_mvccid

char * or_pack_mvccid (
    char * ptr,
    const  MVCCID mvccid
) 

function or_pack_oid

char * or_pack_oid (
    char * ptr,
    const  OID * oid
) 

function or_pack_oid_array

char * or_pack_oid_array (
    char * ptr,
    int n,
    const  OID * oids
) 

function or_pack_ptr

char * or_pack_ptr (
    char * ptr,
    UINTPTR ptrval
) 

function or_pack_recdes

char * or_pack_recdes (
    char * buf,
    RECDES * recdes
) 

function or_pack_set_header

char * or_pack_set_header (
    char * buf,
    DB_TYPE stype,
    DB_TYPE etype,
    int bound_bits,
    int size
) 

function or_pack_set_node

char * or_pack_set_node (
    char * ptr,
    void * set_node
) 

function or_pack_sha1

char * or_pack_sha1 (
    char * ptr,
    const  SHA1Hash * sha1
) 

function or_pack_short

char * or_pack_short (
    char * ptr,
    short number
) 

function or_pack_spacedb

char * or_pack_spacedb (
    char * ptr,
    const  SPACEDB_ALL * all,
    const  SPACEDB_ONEVOL * vols,
    const  SPACEDB_FILES * files
) 

function or_pack_stream

char * or_pack_stream (
    char * ptr,
    const  char * stream,
    size_t len
) 

function or_pack_string

char * or_pack_string (
    char * ptr,
    const  char * string
) 

function or_pack_string_array

char * or_pack_string_array (
    char * buffer,
    int count,
    const  char ** string_array
) 

function or_pack_string_with_length

char * or_pack_string_with_length (
    char * ptr,
    const  char * string,
    int length
) 

function or_pack_string_with_null_padding

char * or_pack_string_with_null_padding (
    char * ptr,
    const  char * stream,
    size_t len
) 

function or_pack_time

char * or_pack_time (
    char * ptr,
    DB_TIME time
) 

function or_pack_utime

char * or_pack_utime (
    char * ptr,
    DB_UTIME utime
) 

function or_pack_value

char * or_pack_value (
    char * buf,
    DB_VALUE * value
) 

function or_packed_bool_array_length

int or_packed_bool_array_length (
    const  bool * bools,
    int size
) 

function or_packed_db_value_array_length

int or_packed_db_value_array_length (
    int count,
    DB_VALUE * val
) 

function or_packed_domain_size

int or_packed_domain_size (
    struct  tp_domain * domain,
    int include_classoids
) 

function or_packed_enumeration_size

int or_packed_enumeration_size (
    const  DB_ENUMERATION * e
) 

function or_packed_put_varbit

int or_packed_put_varbit (
    OR_BUF * buf,
    const  char * string,
    int bitlen
) 

function or_packed_put_varchar

int or_packed_put_varchar (
    OR_BUF * buf,
    char * string,
    int charlen
) 

function or_packed_recdesc_length

int or_packed_recdesc_length (
    int length
) 

function or_packed_set_info

void or_packed_set_info (
    DB_TYPE set_type,
    struct  tp_domain * domain,
    int include_domain,
    int * bound_bits,
    int * offset_table,
    int * element_tags,
    int * element_size
) 

function or_packed_set_length

int or_packed_set_length (
    setobj * set,
    int include_domain
) 

function or_packed_spacedb_size

int or_packed_spacedb_size (
    const  SPACEDB_ALL * all,
    const  SPACEDB_ONEVOL * vols,
    const  SPACEDB_FILES * files
) 

function or_packed_stream_length

int or_packed_stream_length (
    size_t len
) 

function or_packed_string_array_length

int or_packed_string_array_length (
    int count,
    const  char ** string_array
) 

function or_packed_string_length

int or_packed_string_length (
    const  char * string,
    int * strlen
) 

function or_packed_value_size

int or_packed_value_size (
    const  DB_VALUE * value,
    int collapse_null,
    int include_domain,
    int include_domain_classoids
) 

function or_packed_varbit_length

int or_packed_varbit_length (
    int bitlen
) 

function or_packed_varchar_length

int or_packed_varchar_length (
    int charlen
) 

function or_put_binary

int or_put_binary (
    OR_BUF * buf,
    DB_BINARY * binary
) 

function or_put_bound_bit

void or_put_bound_bit (
    char * bound_bits,
    int element,
    int bound
) 

function or_put_domain

int or_put_domain (
    OR_BUF * buf,
    struct  tp_domain * domain,
    int include_classoids,
    int is_null
) 

function or_put_enumeration

int or_put_enumeration (
    OR_BUF * buf,
    const  DB_ENUMERATION * e
) 

function or_put_json_schema

int or_put_json_schema (
    OR_BUF * buf,
    const  char * schema
) 

function or_put_json_validator

int or_put_json_validator (
    OR_BUF * buf,
    JSON_VALIDATOR * validator
) 

function or_put_monetary

int or_put_monetary (
    OR_BUF * buf,
    DB_MONETARY * monetary
) 

function or_put_set

void or_put_set (
    OR_BUF * buf,
    setobj * set,
    int include_domain
) 

function or_put_set_header

int or_put_set_header (
    OR_BUF * buf,
    DB_TYPE set_type,
    int size,
    int domain,
    int bound_bits,
    int offset_table,
    int element_tags,
    int common_sub_header
) 

function or_put_sub_domain

int or_put_sub_domain (
    OR_BUF * buf
) 

function or_put_value

int or_put_value (
    OR_BUF * buf,
    DB_VALUE * value,
    int collapse_null,
    int include_domain,
    int include_domain_classoids
) 

function or_put_varbit

int or_put_varbit (
    OR_BUF * buf,
    const  char * string,
    int bitlen
) 

function or_put_varchar

int or_put_varchar (
    OR_BUF * buf,
    char * string,
    int charlen
) 

function or_rep_id

int or_rep_id (
    RECDES * record
) 

function or_replace_chn

int or_replace_chn (
    RECDES * record,
    int chn
) 

function or_set_element_offset

int or_set_element_offset (
    char * setptr,
    int element
) 

function or_set_node_length

int or_set_node_length (
    void * set_node_ptr
) 

function or_set_rep_id

int or_set_rep_id (
    RECDES * record,
    int repid
) 

function or_skip_set_header

int or_skip_set_header (
    OR_BUF * buf
) 

function or_unpack_bigint

char * or_unpack_bigint (
    char * ptr,
    DB_BIGINT * number
) 

function or_unpack_bool_array

char * or_unpack_bool_array (
    char * ptr,
    bool ** bools
) 

function or_unpack_btid

char * or_unpack_btid (
    char * buf,
    BTID * btid
) 

function or_unpack_date

char * or_unpack_date (
    char * ptr,
    DB_DATE * date
) 

function or_unpack_db_value

char * or_unpack_db_value (
    char * buffer,
    DB_VALUE * val
) 

function or_unpack_db_value_array

char * or_unpack_db_value_array (
    char * buffer,
    DB_VALUE ** val,
    int * count
) 

function or_unpack_domain

char * or_unpack_domain (
    char * ptr,
    struct  tp_domain ** domain_ptr,
    int * is_null
) 

function or_unpack_double

char * or_unpack_double (
    char * ptr,
    double * number
) 

function or_unpack_ehid

char * or_unpack_ehid (
    char * buf,
    EHID * btid
) 

function or_unpack_elo

char * or_unpack_elo (
    char * ptr,
    void ** elo_ptr
) 

function or_unpack_errcode

char * or_unpack_errcode (
    char * ptr,
    int * error
) 

function or_unpack_float

char * or_unpack_float (
    char * ptr,
    float * number
) 

function or_unpack_hfid

char * or_unpack_hfid (
    char * ptr,
    HFID * hfid
) 

function or_unpack_hfid_array

char * or_unpack_hfid_array (
    char * ptr,
    int n,
    HFID ** hfids
) 

function or_unpack_int

char * or_unpack_int (
    char * ptr,
    int * number
) 

function or_unpack_int64

char * or_unpack_int64 (
    char * ptr,
    INT64 * number
) 

function or_unpack_int_array

char * or_unpack_int_array (
    char * ptr,
    int n,
    int ** number_array
) 

function or_unpack_key_val_range

char * or_unpack_key_val_range (
    char * ptr,
    void * key_val_range_ptr
) 

function or_unpack_listid

char * or_unpack_listid (
    char * ptr,
    void * listid_ptr
) 

function or_unpack_lock

char * or_unpack_lock (
    char * ptr,
    LOCK * lock
) 

function or_unpack_log_lsa

char * or_unpack_log_lsa (
    char * ptr,
    struct  log_lsa * lsa
) 

function or_unpack_longint

char * or_unpack_longint (
    char * ptr,
    int * number
) 

function or_unpack_mem_value

char * or_unpack_mem_value (
    char * buf,
    DB_VALUE * value
) 

function or_unpack_method_sig_list

char * or_unpack_method_sig_list (
    char * ptr,
    void ** method_sig_list_ptr
) 

function or_unpack_monetary

char * or_unpack_monetary (
    char * ptr,
    DB_MONETARY * money
) 

function or_unpack_mvccid

char * or_unpack_mvccid (
    char * ptr,
    MVCCID * mvccid
) 

function or_unpack_oid

char * or_unpack_oid (
    char * ptr,
    OID * oid
) 

function or_unpack_oid_array

char * or_unpack_oid_array (
    char * ptr,
    int n,
    OID ** oids
) 

function or_unpack_ptr

char * or_unpack_ptr (
    char * ptr,
    UINTPTR * ptrval
) 

function or_unpack_recdes

char * or_unpack_recdes (
    char * buf,
    RECDES ** recdes
) 

function or_unpack_set

char * or_unpack_set (
    char * ptr,
    setobj ** set,
    struct  tp_domain * domain
) 

function or_unpack_set_header

char * or_unpack_set_header (
    char * buf,
    DB_TYPE * stype,
    DB_TYPE * etype,
    int * bound_bits,
    int * size
) 

function or_unpack_set_node

char * or_unpack_set_node (
    char * ptr,
    void * set_node_ptr
) 

function or_unpack_setref

char * or_unpack_setref (
    char * ptr,
    DB_SET ** ref
) 

function or_unpack_sha1

char * or_unpack_sha1 (
    char * ptr,
    SHA1Hash * sha1
) 

function or_unpack_short

char * or_unpack_short (
    char * ptr,
    short * number
) 

function or_unpack_spacedb

char * or_unpack_spacedb (
    char * ptr,
    SPACEDB_ALL * all,
    SPACEDB_ONEVOL ** vols,
    SPACEDB_FILES * files
) 

function or_unpack_stream

char * or_unpack_stream (
    char * ptr,
    char * stream,
    size_t len
) 

function or_unpack_string

char * or_unpack_string (
    char * ptr,
    char ** string
) 

function or_unpack_string_alloc

char * or_unpack_string_alloc (
    char * ptr,
    char ** string
) 

function or_unpack_string_array

char * or_unpack_string_array (
    char * buffer,
    char *** string_array,
    int * cnt
) 

function or_unpack_string_nocopy

char * or_unpack_string_nocopy (
    char * ptr,
    char ** string
) 

function or_unpack_time

char * or_unpack_time (
    char * ptr,
    DB_TIME * time
) 

function or_unpack_unbound_listid

char * or_unpack_unbound_listid (
    char * ptr,
    void ** listid_ptr
) 

function or_unpack_utime

char * or_unpack_utime (
    char * ptr,
    DB_UTIME * utime
) 

function or_unpack_value

char * or_unpack_value (
    const  char * buf,
    DB_VALUE * value
) 

function or_unpack_var_table

char * or_unpack_var_table (
    char * ptr,
    int nvars,
    OR_VARINFO * vars
) 

function valcnv_convert_value_to_string

int valcnv_convert_value_to_string (
    DB_VALUE * value
) 

Public Static Functions Documentation

function OR_PUT_DOUBLE

static void OR_PUT_DOUBLE (
    char * ptr,
    double val
) 

function OR_PUT_FLOAT

static void OR_PUT_FLOAT (
    char * ptr,
    float val
) 

function or_advance

static int or_advance (
    OR_BUF * buf,
    int offset
) 

function or_align

static int or_align (
    OR_BUF * buf,
    int alignment
) 

function or_get_align

static int or_get_align (
    OR_BUF * buf,
    int align
) 

function or_get_align32

static int or_get_align32 (
    OR_BUF * buf
) 

function or_get_align64

static int or_get_align64 (
    OR_BUF * buf
) 

function or_get_big_var_offset

static int or_get_big_var_offset (
    OR_BUF * buf,
    int * error
) 

function or_get_bigint

static DB_BIGINT or_get_bigint (
    OR_BUF * buf,
    int * error
) 

function or_get_byte

static int or_get_byte (
    OR_BUF * buf,
    int * error
) 

function or_get_data

static int or_get_data (
    OR_BUF * buf,
    char * data,
    int length
) 

function or_get_date

static int or_get_date (
    OR_BUF * buf,
    DB_DATE * date
) 

function or_get_datetime

static int or_get_datetime (
    OR_BUF * buf,
    DB_DATETIME * datetime
) 

function or_get_datetimetz

static int or_get_datetimetz (
    OR_BUF * buf,
    DB_DATETIMETZ * datetimetz
) 

function or_get_double

static double or_get_double (
    OR_BUF * buf,
    int * error
) 

function or_get_float

static float or_get_float (
    OR_BUF * buf,
    int * error
) 

function or_get_int

static int or_get_int (
    OR_BUF * buf,
    int * error
) 

function or_get_mvccid

static int or_get_mvccid (
    OR_BUF * buf,
    MVCCID * mvccid
) 

function or_get_offset

static int or_get_offset (
    OR_BUF * buf,
    int * error
) 

function or_get_offset_internal

static int or_get_offset_internal (
    OR_BUF * buf,
    int * error,
    int offset_size
) 

function or_get_oid

static int or_get_oid (
    OR_BUF * buf,
    OID * oid
) 

function or_get_short

static int or_get_short (
    OR_BUF * buf,
    int * error
) 

function or_get_string_size_byte

static int or_get_string_size_byte (
    OR_BUF * buf,
    int * error
) 

function or_get_time

static int or_get_time (
    OR_BUF * buf,
    DB_TIME * timeval
) 

function or_get_timestamptz

static int or_get_timestamptz (
    OR_BUF * buf,
    DB_TIMESTAMPTZ * ts_tz
) 

function or_get_utime

static int or_get_utime (
    OR_BUF * buf,
    DB_UTIME * timeval
) 

function or_get_varbit_length

static int or_get_varbit_length (
    OR_BUF * buf,
    int * intval
) 

function or_get_varchar_compression_lengths

static int or_get_varchar_compression_lengths (
    OR_BUF * buf,
    int * compressed_size,
    int * decompressed_size
) 

function or_get_varchar_length

static int or_get_varchar_length (
    OR_BUF * buf,
    int * intval
) 

function or_init

static void or_init (
    OR_BUF * buf,
    char * data,
    int length
) 

function or_multi_clear_header

static void or_multi_clear_header (
    char * nullmap_ptr,
    const  int n_elements
) 

function or_multi_get_element_offset

static int or_multi_get_element_offset (
    char * nullmap_ptr,
    const  int n_elements,
    const  int index
) 

function or_multi_get_element_offset_internal

static int or_multi_get_element_offset_internal (
    char * nullmap_ptr,
    const  int n_elements,
    const  int index
) 

function or_multi_get_element_offset_ptr

static char * or_multi_get_element_offset_ptr (
    char * nullmap_ptr,
    const  int n_elements,
    const  int index
) 

function or_multi_get_next_element_offset

static int or_multi_get_next_element_offset (
    char * nullmap_ptr,
    const  int n_elements,
    const  int index
) 

function or_multi_get_offset_table

static char * or_multi_get_offset_table (
    char * nullmap_ptr,
    const  int n_elements
) 

function or_multi_get_size_offset

static int or_multi_get_size_offset (
    char * nullmap_ptr,
    const  int n_elements
) 

function or_multi_header_size

static int or_multi_header_size (
    const  int n_elements
) 

function or_multi_is_not_null

static bool or_multi_is_not_null (
    char * nullmap_ptr,
    const  int index
) 

function or_multi_is_null

static bool or_multi_is_null (
    char * nullmap_ptr,
    const  int index
) 

function or_multi_nullmap_size

static int or_multi_nullmap_size (
    const  int n_elements
) 

function or_multi_offset_table_size

static int or_multi_offset_table_size (
    const  int n_elements
) 

function or_multi_put_element_offset

static void or_multi_put_element_offset (
    char * nullmap_ptr,
    const  int n_elements,
    const  int offset,
    const  int index
) 

function or_multi_put_element_offset_internal

static void or_multi_put_element_offset_internal (
    char * nullmap_ptr,
    const  int n_elements,
    const  int offset,
    const  int index
) 

function or_multi_put_next_element_offset

static void or_multi_put_next_element_offset (
    char * nullmap_ptr,
    const  int n_elements,
    const  int offset,
    const  int index
) 

function or_multi_put_size_offset

static void or_multi_put_size_offset (
    char * nullmap_ptr,
    const  int n_elements,
    const  int offset
) 

function or_multi_set_not_null

static void or_multi_set_not_null (
    char * nullmap_ptr,
    const  int index
) 

function or_multi_set_null

static void or_multi_set_null (
    char * nullmap_ptr,
    const  int index
) 

function or_pad

static int or_pad (
    OR_BUF * buf,
    int length
) 

function or_put_align32

static int or_put_align32 (
    OR_BUF * buf
) 

function or_put_big_var_offset

static int or_put_big_var_offset (
    OR_BUF * buf,
    int num
) 

function or_put_bigint

static int or_put_bigint (
    OR_BUF * buf,
    DB_BIGINT num
) 

function or_put_byte

static int or_put_byte (
    OR_BUF * buf,
    int num
) 

function or_put_data

static int or_put_data (
    OR_BUF * buf,
    const  char * data,
    int length
) 

function or_put_date

static int or_put_date (
    OR_BUF * buf,
    DB_DATE * date
) 

function or_put_datetime

static int or_put_datetime (
    OR_BUF * buf,
    DB_DATETIME * datetimeval
) 

function or_put_datetimetz

static int or_put_datetimetz (
    OR_BUF * buf,
    DB_DATETIMETZ * datetimetz
) 

function or_put_double

static int or_put_double (
    OR_BUF * buf,
    double num
) 

function or_put_float

static int or_put_float (
    OR_BUF * buf,
    float num
) 

function or_put_int

static int or_put_int (
    OR_BUF * buf,
    int num
) 

function or_put_mvccid

static int or_put_mvccid (
    OR_BUF * buf,
    MVCCID mvccid
) 

function or_put_offset

static int or_put_offset (
    OR_BUF * buf,
    int num
) 

function or_put_offset_internal

static int or_put_offset_internal (
    OR_BUF * buf,
    int num,
    int offset_size
) 

function or_put_oid

static int or_put_oid (
    OR_BUF * buf,
    const  OID * oid
) 

function or_put_short

static int or_put_short (
    OR_BUF * buf,
    int num
) 

function or_put_string_aligned

static int or_put_string_aligned (
    OR_BUF * buf,
    char * string
) 

function or_put_string_aligned_with_length

static int or_put_string_aligned_with_length (
    OR_BUF * buf,
    const  char * str
) 

function or_put_time

static int or_put_time (
    OR_BUF * buf,
    DB_TIME * timeval
) 

function or_put_timestamptz

static int or_put_timestamptz (
    OR_BUF * buf,
    DB_TIMESTAMPTZ * ts_tz
) 

function or_put_utime

static int or_put_utime (
    OR_BUF * buf,
    DB_UTIME * timeval
) 

function or_seek

static int or_seek (
    OR_BUF * buf,
    int psn
) 

function or_skip_varbit

static int or_skip_varbit (
    OR_BUF * buf,
    int align
) 

function or_skip_varbit_remainder

static int or_skip_varbit_remainder (
    OR_BUF * buf,
    int bitlen,
    int align
) 

function or_skip_varchar

static int or_skip_varchar (
    OR_BUF * buf,
    int align
) 

function or_skip_varchar_remainder

static int or_skip_varchar_remainder (
    OR_BUF * buf,
    int charlen,
    int align
) 

function or_varbit_length

static int or_varbit_length (
    int bitlen
) 

function or_varbit_length_internal

static int or_varbit_length_internal (
    int bitlen,
    int align
) 

function or_varchar_length

static int or_varchar_length (
    int charlen
) 

function or_varchar_length_internal

static int or_varchar_length_internal (
    int charlen,
    int align
) 

Macro Definition Documentation

define ASSERT_ALIGN

#define ASSERT_ALIGN (
    ptr,
    alignment
) `( assert ( PTR_ALIGN (ptr, alignment) == ptr))`

define BIG_VAR_OFFSET_SIZE

#define BIG_VAR_OFFSET_SIZE `OR_INT_SIZE /* 4 byte */`

define BITS_TO_BYTES

#define BITS_TO_BYTES (
    bit_cnt
) `((( bit_cnt ) + 7) / 8)`

define OR_ALIGNED_BUF

#define OR_ALIGNED_BUF (
    size
) `/* multi line expression */`

define OR_ALIGNED_BUF_SIZE

#define OR_ALIGNED_BUF_SIZE (
    abuf
) `( sizeof (abuf.buf))`

define OR_ALIGNED_BUF_START

#define OR_ALIGNED_BUF_START (
    abuf
) `(abuf.buf)`

define OR_BINARY_LENGTH_MASK

#define OR_BINARY_LENGTH_MASK `0xFFFF`

define OR_BINARY_MAX_LENGTH

#define OR_BINARY_MAX_LENGTH `65535`

define OR_BINARY_PAD_SHIFT

#define OR_BINARY_PAD_SHIFT `16`

define OR_BOUND_BIT_BYTES

#define OR_BOUND_BIT_BYTES (
    count
) `((((count) + 31) >> 5) * 4)`

define OR_BOUND_BIT_FLAG

#define OR_BOUND_BIT_FLAG `0x80000000`

define OR_BOUND_BIT_MASK

#define OR_BOUND_BIT_MASK (
    element
) `(1 << (( int ) (element) & 7))`

define OR_BOUND_BIT_WORDS

#define OR_BOUND_BIT_WORDS (
    count
) `(((count) + 31) >> 5)`

define OR_CHECK_ADD_OVERFLOW

#define OR_CHECK_ADD_OVERFLOW (
    a,
    b,
    c
) `/* multi line expression */`

define OR_CHECK_ASSIGN_OVERFLOW

#define OR_CHECK_ASSIGN_OVERFLOW (
    dest,
    src
) `(((src) > 0 && (dest) < 0) || ((src) < 0 && (dest) > 0))`

define OR_CHECK_BIGINT_DIV_OVERFLOW

#define OR_CHECK_BIGINT_DIV_OVERFLOW (
    a,
    b
) `(( a ) == DB_BIGINT_MIN && (b) == -1)`

define OR_CHECK_BIGINT_OVERFLOW

#define OR_CHECK_BIGINT_OVERFLOW (
    i
) `(( i ) > DB_BIGINT_MAX || ( i ) < DB_BIGINT_MIN )`

define OR_CHECK_DOUBLE_OVERFLOW

#define OR_CHECK_DOUBLE_OVERFLOW (
    i
) `(( i ) > DBL_MAX || (-( i )) > DBL_MAX )`

define OR_CHECK_FLOAT_OVERFLOW

#define OR_CHECK_FLOAT_OVERFLOW (
    i
) `(( i ) > FLT_MAX || (-( i )) > FLT_MAX )`

define OR_CHECK_INT_DIV_OVERFLOW

#define OR_CHECK_INT_DIV_OVERFLOW (
    a,
    b
) `(( a ) == DB_INT32_MIN && (b) == -1)`

define OR_CHECK_INT_OVERFLOW

#define OR_CHECK_INT_OVERFLOW (
    i
) `(( i ) > DB_INT32_MAX || ( i ) < DB_INT32_MIN )`

define OR_CHECK_MULT_OVERFLOW

#define OR_CHECK_MULT_OVERFLOW (
    a,
    b,
    c
) `(((b) == 0) ? ((c) != 0) : ((c) / (b) != ( a )))`

define OR_CHECK_SHORT_DIV_OVERFLOW

#define OR_CHECK_SHORT_DIV_OVERFLOW (
    a,
    b
) `(( a ) == DB_INT16_MIN && (b) == -1)`

define OR_CHECK_SHORT_OVERFLOW

#define OR_CHECK_SHORT_OVERFLOW (
    i
) `(( i ) > DB_INT16_MAX || ( i ) < DB_INT16_MIN )`

define OR_CHECK_SUB_UNDERFLOW

#define OR_CHECK_SUB_UNDERFLOW (
    a,
    b,
    c
) `/* multi line expression */`

define OR_CHECK_UINT_OVERFLOW

#define OR_CHECK_UINT_OVERFLOW (
    i
) `(( i ) > DB_UINT32_MAX || ( i ) < 0)`

define OR_CHECK_UNS_ADD_OVERFLOW

#define OR_CHECK_UNS_ADD_OVERFLOW (
    a,
    b,
    c
) `(c) < ( a ) || (c) < (b)`

define OR_CHECK_UNS_SUB_UNDERFLOW

#define OR_CHECK_UNS_SUB_UNDERFLOW (
    a,
    b,
    c
) `(b) > ( a )`

define OR_CHECK_USHRT_OVERFLOW

#define OR_CHECK_USHRT_OVERFLOW (
    i
) `(( i ) > ( int ) DB_UINT16_MAX || ( i ) < 0)`

define OR_CHN_OFFSET

#define OR_CHN_OFFSET `( OR_REP_OFFSET + OR_MVCC_REP_SIZE )`

define OR_CHN_SIZE

#define OR_CHN_SIZE `4`

define OR_CLEAR_BOUND_BIT

#define OR_CLEAR_BOUND_BIT (
    bitptr,
    element
) `* OR_GET_BOUND_BIT_BYTE ( bitptr , element) = * OR_GET_BOUND_BIT_BYTE ( bitptr , element) & ~ OR_BOUND_BIT_MASK (element)`

define OR_ENABLE_BOUND_BIT

#define OR_ENABLE_BOUND_BIT (
    bitptr,
    element
) `* OR_GET_BOUND_BIT_BYTE ( bitptr , element) = * OR_GET_BOUND_BIT_BYTE ( bitptr , element) | OR_BOUND_BIT_MASK (element)`

define OR_FIXED_ATTRIBUTES_OFFSET

#define OR_FIXED_ATTRIBUTES_OFFSET (
    ptr,
    nvars
) `( OR_FIXED_ATTRIBUTES_OFFSET_INTERNAL (ptr, nvars , BIG_VAR_OFFSET_SIZE ))`

define OR_FIXED_ATTRIBUTES_OFFSET_INTERNAL

#define OR_FIXED_ATTRIBUTES_OFFSET_INTERNAL (
    ptr,
    nvars,
    offset_size
) `( OR_HEADER_SIZE (ptr) + OR_VAR_TABLE_SIZE_INTERNAL ( nvars , offset_size ))`

define OR_FIXED_ATT_IS_BOUND

#define OR_FIXED_ATT_IS_BOUND (
    obj,
    nvars,
    fsize,
    position
) `(! OR_GET_BOUND_BIT_FLAG (obj) || OR_GET_BOUND_BIT ( OR_GET_BOUND_BITS (obj, nvars , fsize ), position))`

define OR_FIXED_ATT_IS_UNBOUND

#define OR_FIXED_ATT_IS_UNBOUND (
    obj,
    nvars,
    fsize,
    position
) `( OR_GET_BOUND_BIT_FLAG (obj) && ! OR_GET_BOUND_BIT ( OR_GET_BOUND_BITS (obj, nvars , fsize ), position))`

define OR_GET_BIGINT

#define OR_GET_BIGINT (
    ptr,
    val
) `/* multi line expression */`

define OR_GET_BIG_VAR_OFFSET

#define OR_GET_BIG_VAR_OFFSET (
    ptr
) `OR_GET_INT ((ptr))`

define OR_GET_BOUND_BIT

#define OR_GET_BOUND_BIT (
    bitptr,
    element
) `((* OR_GET_BOUND_BIT_BYTE (( bitptr ), (element))) & OR_BOUND_BIT_MASK ((element)))`

define OR_GET_BOUND_BITS

#define OR_GET_BOUND_BITS (
    obj,
    nvars,
    fsize
) `/* multi line expression */`

define OR_GET_BOUND_BIT_BYTE

#define OR_GET_BOUND_BIT_BYTE (
    bitptr,
    element
) `(( char *) ( bitptr ) + (( int ) (element) >> 3))`

define OR_GET_BOUND_BIT_FLAG

#define OR_GET_BOUND_BIT_FLAG (
    ptr
) `(( OR_GET_INT ((ptr) + OR_REP_OFFSET )) & OR_BOUND_BIT_FLAG )`

define OR_GET_BTID

#define OR_GET_BTID (
    ptr,
    btid
) `/* multi line expression */`

define OR_GET_BYTE

#define OR_GET_BYTE (
    ptr
) `(*( unsigned  char *) (( char *) (ptr)))`

define OR_GET_CURRENCY_TYPE

#define OR_GET_CURRENCY_TYPE (
    ptr
) `( DB_CURRENCY ) OR_GET_INT ((( char *) (ptr)) + OR_MONETARY_TYPE )`

define OR_GET_DATE

#define OR_GET_DATE (
    ptr,
    value
) `*(( DB_DATE *) (value)) = OR_GET_INT (ptr)`

define OR_GET_DATETIME

#define OR_GET_DATETIME (
    ptr,
    datetime
) `/* multi line expression */`

define OR_GET_DATETIMETZ

#define OR_GET_DATETIMETZ (
    ptr,
    datetimetz
) `/* multi line expression */`

define OR_GET_DOUBLE

#define OR_GET_DOUBLE (
    ptr,
    value
) `(*(value) = ntohd (*( UINT64 *) (ptr)))`

define OR_GET_EHID

#define OR_GET_EHID (
    ptr,
    ehid
) `/* multi line expression */`

define OR_GET_FLOAT

#define OR_GET_FLOAT (
    ptr,
    value
) `(*(value) = ntohf (*( UINT32 *) (ptr)))`

define OR_GET_HFID

#define OR_GET_HFID (
    ptr,
    hfid
) `/* multi line expression */`

define OR_GET_INT

#define OR_GET_INT (
    ptr
) `(( int ) ntohl (*( int *) (( char *) (ptr))))`

define OR_GET_INT64

#define OR_GET_INT64 (
    ptr,
    val
) `/* multi line expression */`

define OR_GET_LOG_LSA

#define OR_GET_LOG_LSA (
    ptr,
    lsa
) `/* multi line expression */`

define OR_GET_MONETARY

#define OR_GET_MONETARY (
    ptr,
    value
) `/* multi line expression */`

define OR_GET_MVCCID

#define OR_GET_MVCCID `OR_GET_BIGINT`

define OR_GET_MVCC_CHN

#define OR_GET_MVCC_CHN (
    ptr
) `( OR_GET_INT (( char *) (ptr) + OR_CHN_OFFSET ))`

define OR_GET_MVCC_DELETE_ID

#define OR_GET_MVCC_DELETE_ID (
    ptr,
    mvcc_flags,
    valp
) `/* multi line expression */`

define OR_GET_MVCC_FLAG

#define OR_GET_MVCC_FLAG (
    ptr
) `/* multi line expression */`

define OR_GET_MVCC_INSERT_ID

#define OR_GET_MVCC_INSERT_ID (
    ptr,
    mvcc_flags,
    valp
) `/* multi line expression */`

define OR_GET_MVCC_REPID

#define OR_GET_MVCC_REPID (
    ptr
) `/* multi line expression */`

define OR_GET_MVCC_REPID_AND_FLAG

#define OR_GET_MVCC_REPID_AND_FLAG (
    ptr
) `( OR_GET_INT ((( char *) (ptr)) + OR_REP_OFFSET ))`

define OR_GET_OBJECT_VAR_TABLE

#define OR_GET_OBJECT_VAR_TABLE (
    obj
) `(( short *) ((( char *) (obj)) + OR_HEADER_SIZE (( char *) (obj))))`

define OR_GET_OFFSET

#define OR_GET_OFFSET (
    ptr
) `OR_GET_BIG_VAR_OFFSET ((ptr))`

define OR_GET_OFFSET_INTERNAL

#define OR_GET_OFFSET_INTERNAL (
    ptr,
    offset_size
) `/* multi line expression */`

define OR_GET_OFFSET_SIZE

#define OR_GET_OFFSET_SIZE (
    ptr
) `/* multi line expression */`

define OR_GET_OID

#define OR_GET_OID (
    ptr,
    oid
) `/* multi line expression */`

define OR_GET_PTR

#define OR_GET_PTR (
    ptr
) `(( UINTPTR ) swap64 (*( UINTPTR *) (( char *) (ptr))))`

define OR_GET_REPID

#define OR_GET_REPID (
    ptr
) `(( OR_GET_INT ((ptr) + OR_REP_OFFSET )) & ~ OR_BOUND_BIT_FLAG & ~ OR_OFFSET_SIZE_FLAG )`

define OR_GET_SET_BOUND_BITS

#define OR_GET_SET_BOUND_BITS (
    setptr
) `( int *) (( char *) ( setptr ) + OR_SET_HEADER_SIZE )`

define OR_GET_SET_VAR_TABLE

#define OR_GET_SET_VAR_TABLE (
    setptr
) `(( int *) (( char *) ( setptr ) + OR_SET_HEADER_SIZE ))`

define OR_GET_SHA1

#define OR_GET_SHA1 (
    ptr,
    value
) `/* multi line expression */`

define OR_GET_SHORT

#define OR_GET_SHORT (
    ptr
) `(( short ) ntohs (*( short *) (( char *) (ptr))))`

define OR_GET_STRING

#define OR_GET_STRING (
    ptr
) `(( char *) (( char *) (ptr)))`

define OR_GET_TIME

#define OR_GET_TIME (
    ptr,
    value
) `*(( DB_TIME *) (value)) = OR_GET_INT (ptr)`

define OR_GET_TIMESTAMPTZ

#define OR_GET_TIMESTAMPTZ (
    ptr,
    ts_tz
) `/* multi line expression */`

define OR_GET_UTIME

#define OR_GET_UTIME (
    ptr,
    value
) `*(( DB_UTIME *) (value)) = OR_GET_INT (ptr)`

define OR_GET_VARIABLE_TYPE

#define OR_GET_VARIABLE_TYPE (
    ptr
) `( OR_GET_INT (( int *) (ptr)))`

define OR_GET_VPID

#define OR_GET_VPID (
    ptr,
    vpid
) `/* multi line expression */`

define OR_HEADER_SIZE

#define OR_HEADER_SIZE (
    ptr
) `( or_header_size (( char *) (ptr)))`

define OR_INFINITE_POINTER

#define OR_INFINITE_POINTER `(( void *) (~(( UINTPTR ) 0UL)))`

define OR_IS_STRING_LENGTH_COMPRESSABLE

#define OR_IS_STRING_LENGTH_COMPRESSABLE (
    str_length
) `(( str_length ) >= OR_MINIMUM_STRING_LENGTH_FOR_COMPRESSION && ( str_length ) <= LZ4_MAX_INPUT_SIZE )`

define OR_MINIMUM_STRING_LENGTH_FOR_COMPRESSION

#define OR_MINIMUM_STRING_LENGTH_FOR_COMPRESSION `255`

define OR_MOVE_MONETARY

#define OR_MOVE_MONETARY (
    src,
    dst
) `/* multi line expression */`

define OR_MVCCID_SIZE

#define OR_MVCCID_SIZE `OR_BIGINT_SIZE`

define OR_MVCC_DELETE_ID_OFFSET

#define OR_MVCC_DELETE_ID_OFFSET (
    mvcc_flags
) `( OR_MVCC_INSERT_ID_OFFSET + ((( mvcc_flags ) & OR_MVCC_FLAG_VALID_INSID ) ? OR_MVCC_INSERT_ID_SIZE : 0))`

define OR_MVCC_DELETE_ID_SIZE

#define OR_MVCC_DELETE_ID_SIZE `8`

define OR_MVCC_FLAG_OFFSET

#define OR_MVCC_FLAG_OFFSET `OR_REP_OFFSET`

define OR_MVCC_FLAG_SIZE

#define OR_MVCC_FLAG_SIZE `OR_MVCC_REP_SIZE`

define OR_MVCC_INSERT_ID_OFFSET

#define OR_MVCC_INSERT_ID_OFFSET `( OR_CHN_OFFSET + OR_CHN_SIZE )`

define OR_MVCC_INSERT_ID_SIZE

#define OR_MVCC_INSERT_ID_SIZE `8`

define OR_MVCC_PREV_VERSION_LSA_OFFSET

#define OR_MVCC_PREV_VERSION_LSA_OFFSET (
    mvcc_flags
) `( OR_MVCC_DELETE_ID_OFFSET ( mvcc_flags ) + ((( mvcc_flags ) & OR_MVCC_FLAG_VALID_DELID ) ? OR_MVCC_DELETE_ID_SIZE : 0))`

define OR_MVCC_PREV_VERSION_LSA_SIZE

#define OR_MVCC_PREV_VERSION_LSA_SIZE `8`

define OR_MVCC_REP_SIZE

#define OR_MVCC_REP_SIZE `4`

define OR_PACK_DOMAIN_OBJECT_TO_OID

#define OR_PACK_DOMAIN_OBJECT_TO_OID (
    p,
    d,
    o,
    n
) `/* multi line expression */`

define OR_PUT_BIGINT

#define OR_PUT_BIGINT (
    ptr,
    val
) `/* multi line expression */`

define OR_PUT_BIG_VAR_OFFSET

#define OR_PUT_BIG_VAR_OFFSET (
    ptr,
    val
) `OR_PUT_INT ((ptr), (val))`

define OR_PUT_BTID

#define OR_PUT_BTID (
    ptr,
    btid
) `/* multi line expression */`

define OR_PUT_BYTE

#define OR_PUT_BYTE (
    ptr,
    val
) `(*(( unsigned  char *) (ptr)) = ( unsigned  char ) (val))`

define OR_PUT_DATE

#define OR_PUT_DATE (
    ptr,
    value
) `OR_PUT_INT (ptr, *(( DB_DATE *) (value)))`

define OR_PUT_DATETIME

#define OR_PUT_DATETIME (
    ptr,
    datetime
) `/* multi line expression */`

define OR_PUT_DATETIMETZ

#define OR_PUT_DATETIMETZ (
    ptr,
    datetimetz
) `/* multi line expression */`

define OR_PUT_EHID

#define OR_PUT_EHID (
    ptr,
    ehid
) `/* multi line expression */`

define OR_PUT_HFID

#define OR_PUT_HFID (
    ptr,
    hfid
) `/* multi line expression */`

define OR_PUT_INT

#define OR_PUT_INT (
    ptr,
    val
) `(*( int *) (( char *) (ptr)) = htonl (( int ) (val)))`

define OR_PUT_INT64

#define OR_PUT_INT64 (
    ptr,
    val
) `/* multi line expression */`

define OR_PUT_LOG_LSA

#define OR_PUT_LOG_LSA (
    ptr,
    lsa
) `/* multi line expression */`

define OR_PUT_MONETARY

#define OR_PUT_MONETARY (
    ptr,
    value
) `/* multi line expression */`

define OR_PUT_MVCCID

#define OR_PUT_MVCCID `OR_PUT_BIGINT`

define OR_PUT_NULL_BTID

#define OR_PUT_NULL_BTID (
    ptr
) `/* multi line expression */`

define OR_PUT_NULL_HFID

#define OR_PUT_NULL_HFID (
    ptr
) `/* multi line expression */`

define OR_PUT_NULL_LOG_LSA

#define OR_PUT_NULL_LOG_LSA (
    ptr
) `/* multi line expression */`

define OR_PUT_NULL_OID

#define OR_PUT_NULL_OID (
    ptr
) `/* multi line expression */`

define OR_PUT_OFFSET

#define OR_PUT_OFFSET (
    ptr,
    val
) `OR_PUT_BIG_VAR_OFFSET ((ptr), (val))`

define OR_PUT_OFFSET_INTERNAL

#define OR_PUT_OFFSET_INTERNAL (
    ptr,
    val,
    offset_size
) `/* multi line expression */`

define OR_PUT_OID

#define OR_PUT_OID (
    ptr,
    oid
) `/* multi line expression */`

define OR_PUT_PTR

#define OR_PUT_PTR (
    ptr,
    val
) `(*( UINTPTR *) (( char *) (ptr)) = swap64 (( UINTPTR ) val))`

define OR_PUT_SHA1

#define OR_PUT_SHA1 (
    ptr,
    value
) `/* multi line expression */`

define OR_PUT_SHORT

#define OR_PUT_SHORT (
    ptr,
    val
) `(*( short *) (( char *) (ptr)) = htons (( short ) (val)))`

define OR_PUT_TIME

#define OR_PUT_TIME (
    ptr,
    value
) `OR_PUT_INT (ptr, *(( DB_TIME *) (value)))`

define OR_PUT_TIMESTAMPTZ

#define OR_PUT_TIMESTAMPTZ (
    ptr,
    ts_tz
) `/* multi line expression */`

define OR_PUT_UTIME

#define OR_PUT_UTIME (
    ptr,
    value
) `OR_PUT_INT (ptr, *(( DB_UTIME *) (value)))`

define OR_PUT_VPID

#define OR_PUT_VPID (
    ptr,
    vpid
) `/* multi line expression */`

define OR_PUT_VPID_ALIGNED

#define OR_PUT_VPID_ALIGNED (
    ptr,
    vpid
) `/* multi line expression */`

define OR_REP_OFFSET

#define OR_REP_OFFSET `0`

define OR_SET_BOUND_BIT

#define OR_SET_BOUND_BIT `0x10000`

define OR_SET_COMMON_SUB_BIT

#define OR_SET_COMMON_SUB_BIT `0x100000`

define OR_SET_DOMAIN_BIT

#define OR_SET_DOMAIN_BIT `0x40000`

define OR_SET_DOMAIN_SIZE

#define OR_SET_DOMAIN_SIZE (
    setptr
) `(( OR_GET_INT (( char *) ( setptr ) + OR_SET_DOMAIN_SIZE_OFFSET )))`

define OR_SET_DOMAIN_SIZE_OFFSET

#define OR_SET_DOMAIN_SIZE_OFFSET `8`

define OR_SET_ELEMENT_COUNT

#define OR_SET_ELEMENT_COUNT (
    setptr
) `(( OR_GET_INT (( char *) ( setptr ) + OR_SET_SIZE_OFFSET )))`

define OR_SET_ELEMENT_OFFSET

#define OR_SET_ELEMENT_OFFSET (
    setptr,
    element
) `( OR_VAR_TABLE_ELEMENT_OFFSET_INTERNAL ( OR_GET_SET_VAR_TABLE ( setptr ), element, BIG_VAR_OFFSET_SIZE ))`

define OR_SET_ELEMENT_TYPE

#define OR_SET_ELEMENT_TYPE (
    setptr
) `( DB_TYPE ) (( OR_GET_INT (( char *) ( setptr )) & OR_SET_ETYPE_MASK ) >> OR_SET_ETYPE_SHIFT )`

define OR_SET_ETYPE_MASK

#define OR_SET_ETYPE_MASK `0xFF00`

define OR_SET_ETYPE_SHIFT

#define OR_SET_ETYPE_SHIFT `8`

define OR_SET_HAS_BOUND_BITS

#define OR_SET_HAS_BOUND_BITS (
    setptr
) `( OR_GET_INT (( char *) ( setptr )) & OR_SET_BOUND_BIT )`

define OR_SET_HAS_DOMAIN

#define OR_SET_HAS_DOMAIN (
    setptr
) `( OR_GET_INT (( char *) ( setptr )) & OR_SET_DOMAIN_BIT )`

define OR_SET_HAS_ELEMENT_TAGS

#define OR_SET_HAS_ELEMENT_TAGS (
    setptr
) `( OR_GET_INT (( char *) ( setptr )) & OR_SET_TAG_BIT )`

define OR_SET_HAS_OFFSET_TABLE

#define OR_SET_HAS_OFFSET_TABLE (
    setptr
) `( OR_GET_INT (( char *) ( setptr )) & OR_SET_VARIABLE_BIT )`

define OR_SET_HEADER_SIZE

#define OR_SET_HEADER_SIZE `8`

define OR_SET_SIZE_OFFSET

#define OR_SET_SIZE_OFFSET `4`

define OR_SET_TAG_BIT

#define OR_SET_TAG_BIT `0x80000`

define OR_SET_TYPE

#define OR_SET_TYPE (
    setptr
) `( DB_TYPE ) (( OR_GET_INT (( char *) ( setptr ))) & OR_SET_TYPE_MASK )`

define OR_SET_TYPE_MASK

#define OR_SET_TYPE_MASK `0xFF`

define OR_SET_VARIABLE_BIT

#define OR_SET_VARIABLE_BIT `0x20000`

define OR_SET_VAR_OFFSET_SIZE

#define OR_SET_VAR_OFFSET_SIZE (
    val,
    offset_size
) `/* multi line expression */`

define OR_SUB_DOMAIN_SIZE

#define OR_SUB_DOMAIN_SIZE `OR_INT_SIZE`

define OR_SUB_HEADER_SIZE

#define OR_SUB_HEADER_SIZE `OR_OID_SIZE + OR_INT_SIZE + OR_INT_SIZE`

define OR_VALUE_ALIGNED_SIZE

#define OR_VALUE_ALIGNED_SIZE (
    value
) `( or_db_value_size (value) + MAX_ALIGNMENT )`

define OR_VARIABLE_HEADER_SIZE

#define OR_VARIABLE_HEADER_SIZE `4`

define OR_VAR_ELEMENT_PTR

#define OR_VAR_ELEMENT_PTR (
    obj,
    index
) `( OR_VAR_TABLE_ELEMENT_PTR ( OR_GET_OBJECT_VAR_TABLE (obj), index, OR_GET_OFFSET_SIZE (obj)))`

define OR_VAR_IS_NULL

#define OR_VAR_IS_NULL (
    obj,
    index
) `/* multi line expression */`

define OR_VAR_LENGTH

#define OR_VAR_LENGTH (
    length,
    obj,
    index,
    n_variables
) `/* multi line expression */`

define OR_VAR_OFFSET

#define OR_VAR_OFFSET (
    obj,
    index
) `/* multi line expression */`

define OR_VAR_TABLE_ELEMENT_LENGTH_INTERNAL

#define OR_VAR_TABLE_ELEMENT_LENGTH_INTERNAL (
    table,
    index,
    offset_size
) `/* multi line expression */`

define OR_VAR_TABLE_ELEMENT_OFFSET_INTERNAL

#define OR_VAR_TABLE_ELEMENT_OFFSET_INTERNAL (
    table,
    index,
    offset_size
) `/* multi line expression */`

define OR_VAR_TABLE_ELEMENT_PTR

#define OR_VAR_TABLE_ELEMENT_PTR (
    table,
    index,
    offset_size
) `/* multi line expression */`

define OR_VAR_TABLE_SIZE

#define OR_VAR_TABLE_SIZE (
    vars
) `( OR_VAR_TABLE_SIZE_INTERNAL ( vars , BIG_VAR_OFFSET_SIZE ))`

define OR_VAR_TABLE_SIZE_INTERNAL

#define OR_VAR_TABLE_SIZE_INTERNAL (
    vars,
    offset_size
) `((( vars ) == 0) ? 0 : DB_ALIGN (( offset_size * (( vars ) + 1)), INT_ALIGNMENT ))`

define SHORT_VAR_OFFSET_SIZE

#define SHORT_VAR_OFFSET_SIZE `OR_SHORT_SIZE /* 2 byte */`


The documentation for this class was generated from the following file cubrid/src/base/object_representation.h