SWC-DB  v0.5.12 C++ documentations
SWC-DB© (Super Wide Column Database) - High Performance Scalable Database (https://github.com/kashirin-alex/swc-db)
HeaderBufferInfo.h File Reference
+ Include dependency graph for HeaderBufferInfo.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  SWC::Comm::BufferInfo
 

Namespaces

 SWC
 The SWC-DB C++ namespace 'SWC'.
 
 SWC::Comm
 The SWC-DB Communications C++ namespace 'SWC::Comm'.
 

Functions

struct SWC::Comm::Header SWC::Comm::__attribute__ ((packed))
 
SWC_CAN_INLINE BufferInfo () noexcept
 
SWC_CAN_INLINE void reset () noexcept
 
SWC_CAN_INLINE uint8_t encoded_length () const noexcept
 
SWC_CAN_INLINE void encode (uint8_t **bufp) const
 
SWC_CAN_INLINE void decode (const uint8_t **bufp, size_t *remainp)
 
void encode (Core::Encoder::Type encoder, StaticBuffer &data)
 
void decode (int &err, StaticBuffer &data) const
 
void print (std::ostream &out) const
 

Variables

uint32_t size
 Buffer size. More...
 
uint32_t size_plain
 Buffer set if Encoder not PLAIN. More...
 
uint32_t chksum
 Buffer checksum. More...
 
Core::Encoder::Type encoder
 Buffer Encoder. More...
 

Function Documentation

◆ BufferInfo()

SWC_CAN_INLINE __attribute__::BufferInfo ( )
noexcept

Definition at line 2 of file HeaderBufferInfo.h.

◆ decode() [1/2]

◆ decode() [2/2]

void __attribute__::decode ( int &  err,
StaticBuffer &  data 
) const

◆ encode() [1/2]

void __attribute__::encode ( Core::Encoder::Type  encoder,
StaticBuffer &  data 
)

◆ encode() [2/2]

SWC_CAN_INLINE void __attribute__::encode ( uint8_t **  bufp) const

Definition at line 24 of file HeaderBufferInfo.h.

Referenced by SWC::DB::Cell::Serial::Value::FieldUpdate_Ext< UpdateField_T >::ext_encode().

+ Here is the caller graph for this function:

◆ encoded_length()

SWC_CAN_INLINE uint8_t __attribute__::encoded_length ( ) const
noexcept

Definition at line 16 of file HeaderBufferInfo.h.

◆ print()

void __attribute__::print ( std::ostream &  out) const

◆ reset()

SWC_CAN_INLINE void __attribute__::reset ( )
noexcept

Definition at line 10 of file HeaderBufferInfo.h.

Referenced by SWC::client::Query::Update::Handlers::Base::get_resend_count().

+ Here is the caller graph for this function:

Variable Documentation

◆ chksum

uint32_t chksum

Buffer checksum.

Definition at line 49 of file HeaderBufferInfo.h.

◆ encoder

◆ size

uint32_t size

Buffer size.

Definition at line 47 of file HeaderBufferInfo.h.

Referenced by SWC::Core::VectorsVector< Core::Vector< VectorT, uint32_t, 1 >, VectorT, 8192 >::add(), SWC::DB::Schemas::all(), SWC::Core::VectorsVector< VectorsT, VectorT, SIZE, GROW, SPLIT >::ConstIterator::at(), SWC::Core::VectorsVector< VectorsT, VectorT, SIZE, GROW, SPLIT >::Iterator::at(), SWC::Core::VectorsVector< VectorsT, VectorT, SIZE, GROW, SPLIT >::ConstIterator::ConstIterator(), SWC::DB::Cell::Serial::Value::Field_LIST_INT64::convert_less_to(), SWC::DB::Cell::Serial::Value::Field_LIST_BYTES::convert_less_to(), SWC::DB::Cell::Serial::Value::Field_BYTES::convert_to(), SWC::DB::Cell::Serial::Value::Field_LIST_INT64::convert_to(), SWC::DB::Cell::Serial::Value::Field_LIST_BYTES::convert_to(), SWC::Core::Mem::Page::count(), SWC::Manager::MngdColumns::create_schemas_store(), SWC::DB::Specs::Fraction::encode(), SWC::DB::Specs::Fraction::encoded_length(), SWC::Core::VectorsVector< Core::Vector< VectorT, uint32_t, 1 >, VectorT, 8192 >::ensure(), SWC::Core::BufferDyn< StaticBuffer >::ensure(), SWC::DB::Specs::Column::equal(), SWC::DB::Specs::KeyIntervals::equal(), SWC::DB::Specs::Value::equal(), SWC::DB::Specs::Values::equal(), SWC::Ranger::Columns::get_cids(), SWC::Ranger::Columns::get_columns(), SWC::Ranger::Columns::get_next(), SWC::Ranger::Column::get_next(), SWC::Comm::IoContext::get_number_of_threads(), SWC::Ranger::Column::get_ranges(), SWC::Ranger::Column::get_rids(), SWC::Env::IoCtx::init(), SWC::Manager::MngdColumns::initialize(), SWC::DB::Specs::Fraction::is_matching(), SWC::Core::VectorsVector< VectorsT, VectorT, SIZE, GROW, SPLIT >::Iterator::Iterator(), SWC::Comm::IoContext::make(), SWC::DB::Specs::MatcherCounter::MatcherCounter(), SWC::DB::Cell::Key::move(), SWC::DB::Specs::Value::move(), SWC::client::Query::Update::Handlers::BaseUnorderedMap::next(), SWC::Comm::client::ConnQueue::print(), SWC::Core::VectorsVector< Core::Vector< VectorT, uint32_t, 1 >, VectorT, 8192 >::print(), SWC::DB::Cells::Result::print(), SWC::Ranger::Column::ranges_count(), SWC::Core::BufferDyn< StaticBuffer >::release(), SWC::Core::BufferDyn< StaticBuffer >::remaining(), SWC::Ranger::Column::remove(), SWC::DB::Schemas::size(), SWC::Core::QueueSafe< Comm::ConnHandlerPtr >::size(), SWC::Core::QueueSafeStated< SWC::Ranger::CellStore::Block::Read >::size(), SWC::Ranger::CellStore::Read::size_bytes(), SWC::Ranger::CellStore::Read::size_bytes_enc(), SWC::DB::Cells::Result::take(), SWC::Core::BufferDyn< StaticBuffer >::take_ownership(), SWC::Core::Mem::Page::use(), and SWC::Core::Mem::Arena::use().

◆ size_plain