libpqxx
The C++ client library for PostgreSQL
pqxx::string_traits< zview > Struct Referencefinal

String traits for zview. More...

#include <conversions.hxx>

Static Public Member Functions

static constexpr PQXX_INLINE_ONLY std::size_t size_buffer (std::string_view const &value) noexcept
 
static constexpr zview to_buf (std::span< char >, zview const &value, ctx={})
 
static zview from_string (std::string_view, ctx={})=delete
 Don't convert to this type. There may not be a terminating zero. More...
 

Detailed Description

String traits for zview.

Member Function Documentation

◆ from_string()

static zview pqxx::string_traits< zview >::from_string ( std::string_view  ,
ctx  = {} 
)
staticdelete

Don't convert to this type. There may not be a terminating zero.

There is no valid way to figure out here whether there is a terminating zero. Even if there is one, that may just be the first byte of an entirely separately allocated piece of memory.

◆ size_buffer()

static constexpr PQXX_INLINE_ONLY std::size_t pqxx::string_traits< zview >::size_buffer ( std::string_view const &  value)
inlinestaticconstexprnoexcept

◆ to_buf()

static constexpr zview pqxx::string_traits< zview >::to_buf ( std::span< char >  ,
zview const &  value,
ctx  = {} 
)
inlinestaticconstexpr

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