Skip to content

Class cubpacking::packer

ClassList > cubpacking > packer

  • #include <packer.hpp>

Public Functions

Type Name
void align (const size_t req_alignment)
void append_to_buffer_and_pack_all (ExtBlk & eb, Args &&... args)
void delegate_to_or_buf (const size_t size, or_buf & buf)
size_t get_all_packed_size (Args &&... args)
size_t get_all_packed_size_starting_offset (size_t start_offset, Args &&... args)
const char * get_buffer_end (void)
const char * get_buffer_start (void)
const char * get_curr_ptr (void)
size_t get_current_size (void)
size_t get_packed_bigint_size (size_t curr_offset)
size_t get_packed_bool_size (size_t curr_offset)
std::size_t get_packed_buffer_size (const char * stream, const std::size_t length, const std::size_t curr_offset) const
size_t get_packed_c_string_size (const char * str, const size_t str_size, const size_t curr_offset)
size_t get_packed_db_value_size (const db_value & value, size_t curr_offset)
size_t get_packed_int_array_size (size_t curr_offset, const size_t count)
size_t get_packed_int_size (size_t curr_offset)
size_t get_packed_oid_size (const size_t curr_offset)
size_t get_packed_short_size (size_t curr_offset)
size_t get_packed_string_size (const std::string & str, const size_t curr_offset)
bool has_error (void) const
bool is_ended (void)
void pack_all (Args &&... args)
void pack_bigint (const std::int64_t & value)
void pack_bigint (const std::uint64_t & value)
void pack_bool (const bool value)
void pack_buffer_with_length (const char * stream, const std::size_t length)
void pack_c_string (const char * str, const size_t str_size)
void pack_db_value (const db_value & value)
void pack_int (const int value)
void pack_int_array (const int * array, const int count)
void pack_oid (const OID & oid)
void pack_short (const short value)
void pack_string (const std::string & str)
packer ()
packer (char * storage, const size_t amount)
void set_buffer (char * storage, const size_t amount)
void set_buffer_and_pack_all (ExtBlk & eb, Args &&... args)

Public Functions Documentation

function align

void cubpacking::packer::align (
    const  size_t req_alignment
) 

function append_to_buffer_and_pack_all

template<typename  ExtBlk, typename ... Args>
void cubpacking::packer::append_to_buffer_and_pack_all (
    ExtBlk & eb,
    Args &&... args
) 

function delegate_to_or_buf

void cubpacking::packer::delegate_to_or_buf (
    const  size_t size,
    or_buf & buf
) 

function get_all_packed_size

template<typename ... Args>
size_t cubpacking::packer::get_all_packed_size (
    Args &&... args
) 

function get_all_packed_size_starting_offset

template<typename ... Args>
size_t cubpacking::packer::get_all_packed_size_starting_offset (
    size_t start_offset,
    Args &&... args
) 

function get_buffer_end

const  char * cubpacking::packer::get_buffer_end (
    void
) 

function get_buffer_start

const  char * cubpacking::packer::get_buffer_start (
    void
) 

function get_curr_ptr

const  char * cubpacking::packer::get_curr_ptr (
    void
) 

function get_current_size

size_t cubpacking::packer::get_current_size (
    void
) 

function get_packed_bigint_size

size_t cubpacking::packer::get_packed_bigint_size (
    size_t curr_offset
) 

function get_packed_bool_size

size_t cubpacking::packer::get_packed_bool_size (
    size_t curr_offset
) 

function get_packed_buffer_size

std::size_t cubpacking::packer::get_packed_buffer_size (
    const  char * stream,
    const std::size_t length,
    const std::size_t curr_offset
) const

function get_packed_c_string_size

size_t cubpacking::packer::get_packed_c_string_size (
    const  char * str,
    const  size_t str_size,
    const  size_t curr_offset
) 

function get_packed_db_value_size

size_t cubpacking::packer::get_packed_db_value_size (
    const  db_value & value,
    size_t curr_offset
) 

function get_packed_int_array_size

size_t cubpacking::packer::get_packed_int_array_size (
    size_t curr_offset,
    const  size_t count
) 

function get_packed_int_size

size_t cubpacking::packer::get_packed_int_size (
    size_t curr_offset
) 

function get_packed_oid_size

size_t cubpacking::packer::get_packed_oid_size (
    const  size_t curr_offset
) 

function get_packed_short_size

size_t cubpacking::packer::get_packed_short_size (
    size_t curr_offset
) 

function get_packed_string_size

size_t cubpacking::packer::get_packed_string_size (
    const std::string & str,
    const  size_t curr_offset
) 

function has_error

bool cubpacking::packer::has_error (
    void
) const

function is_ended

bool cubpacking::packer::is_ended (
    void
) 

function pack_all

template<typename ... Args>
void cubpacking::packer::pack_all (
    Args &&... args
) 

function pack_bigint [1/2]

void cubpacking::packer::pack_bigint (
    const std::int64_t & value
) 

function pack_bigint [2/2]

void cubpacking::packer::pack_bigint (
    const std::uint64_t & value
) 

function pack_bool

void cubpacking::packer::pack_bool (
    const  bool value
) 

function pack_buffer_with_length

void cubpacking::packer::pack_buffer_with_length (
    const  char * stream,
    const std::size_t length
) 

function pack_c_string

void cubpacking::packer::pack_c_string (
    const  char * str,
    const  size_t str_size
) 

function pack_db_value

void cubpacking::packer::pack_db_value (
    const  db_value & value
) 

function pack_int

void cubpacking::packer::pack_int (
    const  int value
) 

function pack_int_array

void cubpacking::packer::pack_int_array (
    const  int * array,
    const  int count
) 

function pack_oid

void cubpacking::packer::pack_oid (
    const  OID & oid
) 

function pack_short

void cubpacking::packer::pack_short (
    const  short value
) 

function pack_string

void cubpacking::packer::pack_string (
    const std::string & str
) 

function packer [1/2]

cubpacking::packer::packer () 

function packer [2/2]

cubpacking::packer::packer (
    char * storage,
    const  size_t amount
) 

function set_buffer

void cubpacking::packer::set_buffer (
    char * storage,
    const  size_t amount
) 

function set_buffer_and_pack_all

template<typename  ExtBlk, typename ... Args>
void cubpacking::packer::set_buffer_and_pack_all (
    ExtBlk & eb,
    Args &&... args
) 


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