#include <fastcgi++/sql/parameters.hpp>
|
constexpr | operator double () const noexcept |
|
constexpr const char * | data () const |
| Pointer to start of big endian integer representation. More...
|
|
constexpr unsigned | size () const |
| Size in bytes of value. More...
|
|
|
static constexpr double | read (const unsigned char *source) noexcept |
| Static function for reading the value out of a data array. More...
|
|
static constexpr double | read (const char *source) noexcept |
| Simply casts char to unsigned char. More...
|
|
|
static const unsigned | oid = Traits<double>::oid |
|
|
constexpr void | set (double x) noexcept |
| Set the internal data to the passed parameter. More...
|
|
|
static constexpr void | from (const unsigned char *arr, std::uint16_t &v) noexcept |
|
static constexpr void | from (const unsigned char *arr, std::uint32_t &v) noexcept |
|
static constexpr void | from (const unsigned char *arr, std::uint64_t &v) noexcept |
|
static constexpr void | to (unsigned char *arr, const std::uint16_t v) |
|
static constexpr void | to (unsigned char *arr, const std::uint32_t v) |
|
static constexpr void | to (unsigned char *arr, const std::uint64_t v) |
|
|
static constexpr unsigned | s_size |
|
Definition at line 147 of file parameters.hpp.
◆ BaseType
Underlying unsigned integral type.
Definition at line 147 of file endian.hpp.
◆ data()
Pointer to start of big endian integer representation.
Definition at line 212 of file endian.hpp.
◆ from() [1/3]
static constexpr void Fastcgipp::BigEndian_base::from |
( |
const unsigned char * |
arr, |
|
|
std::uint16_t & |
v |
|
) |
| |
|
inlinestaticconstexprprotectednoexceptinherited |
◆ from() [2/3]
static constexpr void Fastcgipp::BigEndian_base::from |
( |
const unsigned char * |
arr, |
|
|
std::uint32_t & |
v |
|
) |
| |
|
inlinestaticconstexprprotectednoexceptinherited |
◆ from() [3/3]
static constexpr void Fastcgipp::BigEndian_base::from |
( |
const unsigned char * |
arr, |
|
|
std::uint64_t & |
v |
|
) |
| |
|
inlinestaticconstexprprotectednoexceptinherited |
◆ operator double()
|
inlineconstexprnoexceptinherited |
◆ read() [1/2]
|
inlinestaticconstexprnoexceptinherited |
Simply casts char to unsigned char.
Definition at line 206 of file endian.hpp.
◆ read() [2/2]
|
inlinestaticconstexprnoexceptinherited |
Static function for reading the value out of a data array.
This will read the value out of an unsigned char array in big endian format and cast it into type T.
- Parameters
-
[in] | source | Pointer to start of data. This data should of course be at minimum size. |
Definition at line 195 of file endian.hpp.
◆ set()
|
inlineconstexprprivatenoexceptinherited |
Set the internal data to the passed parameter.
Definition at line 158 of file endian.hpp.
◆ size()
Size in bytes of value.
Definition at line 218 of file endian.hpp.
◆ to() [1/3]
static constexpr void Fastcgipp::BigEndian_base::to |
( |
unsigned char * |
arr, |
|
|
const std::uint16_t |
v |
|
) |
| |
|
inlinestaticconstexprprotectedinherited |
◆ to() [2/3]
static constexpr void Fastcgipp::BigEndian_base::to |
( |
unsigned char * |
arr, |
|
|
const std::uint32_t |
v |
|
) |
| |
|
inlinestaticconstexprprotectedinherited |
◆ to() [3/3]
static constexpr void Fastcgipp::BigEndian_base::to |
( |
unsigned char * |
arr, |
|
|
const std::uint64_t |
v |
|
) |
| |
|
inlinestaticconstexprprotectedinherited |
◆ m_data
The raw data of the big endian integer.
Definition at line 155 of file endian.hpp.
◆ oid
◆ s_size
|
staticconstexprprivateinherited |
The documentation for this struct was generated from the following files: