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

Go to the source code of this file.

Namespaces

 SWC
 The SWC-DB C++ namespace 'SWC'.
 
 SWC::Core
 The SWC-DB Core Components C++ namespace 'SWC::Core'.
 
 SWC::Core::Encoder
 The SWC-DB Encoder C++ namespace 'SWC::Core::Encoder'.
 

Macros

#define SWC_DEFAULT_ENCODER   ZSTD
 
#define SWC_DEFAULT_COMM_ENCODER   SWC::Core::Encoder::Type::SWC_DEFAULT_ENCODER
 
#define SWC_DEFAULT_STORAGE_ENCODER   SWC::Core::Encoder::Type::SWC_DEFAULT_ENCODER
 

Enumerations

enum  SWC::Core::Encoder::Type : uint8_t {
  SWC::Core::Encoder::Type::DEFAULT = 0x00,
  SWC::Core::Encoder::Type::PLAIN = 0x01,
  SWC::Core::Encoder::Type::ZLIB = 0x02,
  SWC::Core::Encoder::Type::SNAPPY = 0x03,
  SWC::Core::Encoder::Type::ZSTD = 0x04,
  SWC::Core::Encoder::Type::UNKNOWN = 0xff
}
 

Functions

const char *SWC_CONST_FUNC SWC::Core::Encoder::to_string (Type typ) noexcept
 
Type SWC_PURE_FUNC SWC::Core::Encoder::encoding_from (const std::string &typ) noexcept
 
SWC_CAN_INLINE std::string SWC::Core::Encoder::repr_encoding (int typ)
 
SWC_CAN_INLINE int SWC::Core::Encoder::from_string_encoding (const std::string &typ) noexcept
 
void SWC::Core::Encoder::decode (int &err, Type encoder, const uint8_t *src, size_t sz_enc, uint8_t *dst, size_t sz)
 
void SWC::Core::Encoder::encode (int &err, Type encoder, const uint8_t *src, size_t src_sz, size_t *sz_enc, DynamicBuffer &output, uint32_t reserve, bool no_plain_out=false, bool ok_more=false)
 

Macro Definition Documentation

◆ SWC_DEFAULT_COMM_ENCODER

#define SWC_DEFAULT_COMM_ENCODER   SWC::Core::Encoder::Type::SWC_DEFAULT_ENCODER

Definition at line 23 of file Encoder.h.

◆ SWC_DEFAULT_ENCODER

#define SWC_DEFAULT_ENCODER   ZSTD

Definition at line 20 of file Encoder.h.

◆ SWC_DEFAULT_STORAGE_ENCODER

#define SWC_DEFAULT_STORAGE_ENCODER   SWC::Core::Encoder::Type::SWC_DEFAULT_ENCODER

Definition at line 24 of file Encoder.h.