userver: storages::postgres::io::FieldBuffer Struct Reference
Loading...
Searching...
No Matches
storages::postgres::io::FieldBuffer Struct Reference

Detailed Description

Definition at line 56 of file traits.hpp.

Public Member Functions

std::string ToString () const
 
constexpr FieldBuffer GetSubBuffer (std::size_t offset, std::size_t size=npos, BufferCategory cat=BufferCategory::kKeepCategory) const
 
template<typename T >
std::size_t Read (T &&value, BufferCategory cat=BufferCategory::kKeepCategory, std::size_t length=sizeof(T))
 
template<typename T >
std::size_t Read (T &&value, const TypeBufferCategory &categories, std::size_t length=sizeof(T), BufferCategory cat=BufferCategory::kKeepCategory)
 
template<typename T >
std::size_t ReadRaw (T &&value, const TypeBufferCategory &categories, BufferCategory cat=BufferCategory::kKeepCategory)
 

Public Attributes

bool is_null = false
 
BufferCategory category = BufferCategory::kPlainBuffer
 
std::size_t length = 0
 
const std::uint8_t * buffer = nullptr
 

Static Public Attributes

static constexpr std::size_t npos = std::numeric_limits<std::size_t>::max()
 

Member Function Documentation

◆ GetSubBuffer()

constexpr FieldBuffer storages::postgres::io::FieldBuffer::GetSubBuffer ( std::size_t offset,
std::size_t size = npos,
BufferCategory cat = BufferCategory::kKeepCategory ) const
inlineconstexpr

Definition at line 12 of file field_buffer.hpp.

◆ Read() [1/2]

template<typename T >
std::size_t storages::postgres::io::FieldBuffer::Read ( T && value,
BufferCategory cat = BufferCategory::kKeepCategory,
std::size_t length = sizeof(T) )

Definition at line 31 of file field_buffer.hpp.

◆ Read() [2/2]

template<typename T >
std::size_t storages::postgres::io::FieldBuffer::Read ( T && value,
const TypeBufferCategory & categories,
std::size_t length = sizeof(T),
BufferCategory cat = BufferCategory::kKeepCategory )

Definition at line 39 of file field_buffer.hpp.

◆ ReadRaw()

template<typename T >
std::size_t storages::postgres::io::FieldBuffer::ReadRaw ( T && value,
const TypeBufferCategory & categories,
BufferCategory cat = BufferCategory::kKeepCategory )

Definition at line 48 of file field_buffer.hpp.

◆ ToString()

std::string storages::postgres::io::FieldBuffer::ToString ( ) const
inline

Definition at line 64 of file traits.hpp.

Member Data Documentation

◆ buffer

const std::uint8_t* storages::postgres::io::FieldBuffer::buffer = nullptr

Definition at line 62 of file traits.hpp.

◆ category

BufferCategory storages::postgres::io::FieldBuffer::category = BufferCategory::kPlainBuffer

Definition at line 60 of file traits.hpp.

◆ is_null

bool storages::postgres::io::FieldBuffer::is_null = false

Definition at line 59 of file traits.hpp.

◆ length

std::size_t storages::postgres::io::FieldBuffer::length = 0

Definition at line 61 of file traits.hpp.

◆ npos

constexpr std::size_t storages::postgres::io::FieldBuffer::npos = std::numeric_limits<std::size_t>::max()
staticconstexpr

Definition at line 57 of file traits.hpp.


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