Custom std::char_trast if the compiler does not provide one.
More...
#include <util.hxx>
|
| static void | assign (std::byte &a, const std::byte &b) noexcept |
| |
| static bool | eq (std::byte a, std::byte b) |
| |
| static bool | lt (std::byte a, std::byte b) |
| |
| static int | compare (const std::byte *a, const std::byte *b, std::size_t size) |
| |
| static size_t | length (const std::byte *data) |
| | Deliberately undefined: "guess" the length of an array of bytes. More...
|
| |
| static PQXX_RETURNS_NONNULL const std::byte * | find (const std::byte *data, std::size_t size, const std::byte &value) |
| |
| static PQXX_RETURNS_NONNULL std::byte * | move (std::byte *dest, const std::byte *src, std::size_t size) |
| |
| static PQXX_RETURNS_NONNULL std::byte * | copy (std::byte *dest, const std::byte *src, std::size_t size) |
| |
| static PQXX_RETURNS_NONNULL std::byte * | assign (std::byte *dest, std::size_t size, std::byte value) |
| |
| static int_type | not_eof (int_type value) |
| | Declared but not defined: makes no sense for binary data. More...
|
| |
| static std::byte | to_char_type (int_type value) |
| |
| static int_type | to_int_type (std::byte value) |
| |
| static bool | eq_int_type (int_type a, int_type b) |
| |
| static int_type | eof () |
| | Declared but not defined: makes no sense for binary data. More...
|
| |
Custom std::char_trast if the compiler does not provide one.
Needed for strings of bytes if the standard library lacks a generic implementation or a specialisation for std::byte. They aren't strictly required to provide either, and libc++ 19 removed its generic implementation.
- Deprecated:
- Because of these complications, and because standard strings aren't really suited to binary data, you should use pqxx::bytes or pqxx::bytes_view instead. This type will be removed.
◆ char_type
◆ assign() [1/2]
| static void pqxx::byte_char_traits::assign |
( |
std::byte & |
a, |
|
|
const std::byte & |
b |
|
) |
| |
|
inlinestaticnoexcept |
◆ assign() [2/2]
| static PQXX_RETURNS_NONNULL std::byte* pqxx::byte_char_traits::assign |
( |
std::byte * |
dest, |
|
|
std::size_t |
size, |
|
|
std::byte |
value |
|
) |
| |
|
inlinestatic |
◆ compare()
| static int pqxx::byte_char_traits::compare |
( |
const std::byte * |
a, |
|
|
const std::byte * |
b, |
|
|
std::size_t |
size |
|
) |
| |
|
inlinestatic |
◆ copy()
| static PQXX_RETURNS_NONNULL std::byte* pqxx::byte_char_traits::copy |
( |
std::byte * |
dest, |
|
|
const std::byte * |
src, |
|
|
std::size_t |
size |
|
) |
| |
|
inlinestatic |
◆ eof()
| static int_type pqxx::byte_char_traits::eof |
( |
| ) |
|
|
static |
Declared but not defined: makes no sense for binary data.
◆ eq()
| static bool pqxx::byte_char_traits::eq |
( |
std::byte |
a, |
|
|
std::byte |
b |
|
) |
| |
|
inlinestatic |
◆ eq_int_type()
| static bool pqxx::byte_char_traits::eq_int_type |
( |
int_type |
a, |
|
|
int_type |
b |
|
) |
| |
|
inlinestatic |
◆ find()
| static PQXX_RETURNS_NONNULL const std::byte* pqxx::byte_char_traits::find |
( |
const std::byte * |
data, |
|
|
std::size_t |
size, |
|
|
const std::byte & |
value |
|
) |
| |
|
inlinestatic |
◆ length()
| static size_t pqxx::byte_char_traits::length |
( |
const std::byte * |
data | ) |
|
|
static |
Deliberately undefined: "guess" the length of an array of bytes.
◆ lt()
| static bool pqxx::byte_char_traits::lt |
( |
std::byte |
a, |
|
|
std::byte |
b |
|
) |
| |
|
inlinestatic |
◆ move()
| static PQXX_RETURNS_NONNULL std::byte* pqxx::byte_char_traits::move |
( |
std::byte * |
dest, |
|
|
const std::byte * |
src, |
|
|
std::size_t |
size |
|
) |
| |
|
inlinestatic |
◆ not_eof()
| static int_type pqxx::byte_char_traits::not_eof |
( |
int_type |
value | ) |
|
|
static |
Declared but not defined: makes no sense for binary data.
◆ to_char_type()
| static std::byte pqxx::byte_char_traits::to_char_type |
( |
int_type |
value | ) |
|
|
inlinestatic |
◆ to_int_type()
| static int_type pqxx::byte_char_traits::to_int_type |
( |
std::byte |
value | ) |
|
|
inlinestatic |
The documentation for this struct was generated from the following file: