yaLanTingLibs
struct_pack

yaLanTingLibs struct_pack More...

Functions

std::string_view struct_pack::error_message (struct_pack::errc err) noexcept
 
template<uint64_t conf = sp_config::DEFAULT, typename... Args>
constexpr struct_pack::serialize_buffer_size struct_pack::get_needed_size (const Args &...args)
 

Detailed Description

yaLanTingLibs struct_pack

Function Documentation

◆ error_message()

std::string_view struct_pack::error_message ( struct_pack::errc  err)
inlinenoexcept

Get the error message corresponding to the error code err.

Parameters
errerror code.
Returns
error message.

◆ get_needed_size()

template<uint64_t conf = sp_config::DEFAULT, typename... Args>
constexpr struct_pack::serialize_buffer_size struct_pack::get_needed_size ( const Args &...  args)
constexpr

Get the byte size of the packing objects. TODO: add doc

Template Parameters
Argsthe types of packing objects.
Parameters
argsthe packing objects.
Returns
byte size.