MySQL 8.4.2
Source Code Documentation
|
Functions | |
size_t | get_size_integer_varlen_unsigned (const std::unsigned_integral auto &data) |
Calculates the number of bytes necessary to store data. More... | |
size_t | get_size_integer_varlen_signed (const std::signed_integral auto &data) |
Calculates the number of bytes necessary to store data. More... | |
size_t | get_size_integer_varlen (const std::unsigned_integral auto &data) |
Calculates the number of bytes necessary to store data. More... | |
size_t | get_size_integer_varlen (const std::signed_integral auto &data) |
Calculates the number of bytes necessary to store data. More... | |
size_t | write_varlen_bytes_unsigned (unsigned char *stream, const std::unsigned_integral auto &data) |
Writes variable-length integer to the stream. More... | |
size_t | write_varlen_bytes_signed (unsigned char *stream, const std::signed_integral auto &data) |
Writes variable-length integer to the stream. More... | |
size_t | write_varlen_bytes (unsigned char *stream, const std::unsigned_integral auto &data) |
Writes variable-length integer to the stream. More... | |
size_t | write_varlen_bytes (unsigned char *stream, const std::signed_integral auto &data) |
Writes variable-length integer to the stream. More... | |
template<typename Type > requires std::unsigned_integral<Type> | |
size_t | read_varlen_bytes_unsigned (const unsigned char *stream, std::size_t stream_bytes, Type &data) |
Reads variable-length integer from the stream. More... | |
template<typename Type > requires std::signed_integral<Type> | |
size_t | read_varlen_bytes_signed (const unsigned char *stream, std::size_t stream_bytes, Type &data) |
Reads variable-length integer from the stream. More... | |
size_t | read_varlen_bytes (const unsigned char *stream, std::size_t stream_bytes, std::unsigned_integral auto &data) |
Reads variable-length integer from the stream. More... | |
size_t | read_varlen_bytes (const unsigned char *stream, std::size_t stream_bytes, std::signed_integral auto &data) |
Reads variable-length integer from the stream. More... | |
size_t mysql::serialization::detail::get_size_integer_varlen | ( | const std::signed_integral auto & | data | ) |
Calculates the number of bytes necessary to store data.
Type | Integer type |
data | The number to be stored into the memory |
Enabled for signed integers
size_t mysql::serialization::detail::get_size_integer_varlen | ( | const std::unsigned_integral auto & | data | ) |
Calculates the number of bytes necessary to store data.
Type | Integer type |
data | The number to be stored into the memory |
Enabled for unsigned integers
size_t mysql::serialization::detail::get_size_integer_varlen_signed | ( | const std::signed_integral auto & | data | ) |
Calculates the number of bytes necessary to store data.
Type | Integer type |
data | The number to be stored into the memory |
Version for signed integers
size_t mysql::serialization::detail::get_size_integer_varlen_unsigned | ( | const std::unsigned_integral auto & | data | ) |
Calculates the number of bytes necessary to store data.
Type | Integer type |
data | The number to be stored into the memory |
size_t mysql::serialization::detail::read_varlen_bytes | ( | const unsigned char * | stream, |
std::size_t | stream_bytes, | ||
std::signed_integral auto & | data | ||
) |
Reads variable-length integer from the stream.
[in] | stream | Encoded data |
[in] | stream_bytes | Number of bytes in the stream |
[out] | data | Result value |
size_t mysql::serialization::detail::read_varlen_bytes | ( | const unsigned char * | stream, |
std::size_t | stream_bytes, | ||
std::unsigned_integral auto & | data | ||
) |
Reads variable-length integer from the stream.
[in] | stream | Encoded data |
[in] | stream_bytes | Number of bytes in the stream |
[out] | data | Result value |
size_t mysql::serialization::detail::read_varlen_bytes_signed | ( | const unsigned char * | stream, |
std::size_t | stream_bytes, | ||
Type & | data | ||
) |
Reads variable-length integer from the stream.
[in] | stream | Encoded data |
[in] | stream_bytes | Number of bytes in the stream |
[out] | data | Result value |
size_t mysql::serialization::detail::read_varlen_bytes_unsigned | ( | const unsigned char * | stream, |
std::size_t | stream_bytes, | ||
Type & | data | ||
) |
Reads variable-length integer from the stream.
[in] | stream | Encoded data |
[in] | stream_bytes | Number of bytes in the stream |
[out] | data | Result value |
size_t mysql::serialization::detail::write_varlen_bytes | ( | unsigned char * | stream, |
const std::signed_integral auto & | data | ||
) |
Writes variable-length integer to the stream.
[in] | stream | Encoded data stream |
[out] | data | Integer to write |
Enabled for signed integers
size_t mysql::serialization::detail::write_varlen_bytes | ( | unsigned char * | stream, |
const std::unsigned_integral auto & | data | ||
) |
Writes variable-length integer to the stream.
[in] | stream | Encoded data stream |
[out] | data | Integer to write |
Enabled for unsigned integers
size_t mysql::serialization::detail::write_varlen_bytes_signed | ( | unsigned char * | stream, |
const std::signed_integral auto & | data | ||
) |
Writes variable-length integer to the stream.
[in] | stream | Encoded data stream |
[out] | data | Integer to write |
Version for signed integers
size_t mysql::serialization::detail::write_varlen_bytes_unsigned | ( | unsigned char * | stream, |
const std::unsigned_integral auto & | data | ||
) |
Writes variable-length integer to the stream.
[in] | stream | Encoded data stream |
[out] | data | Integer to write |