MySQL 9.1.0
Source Code Documentation
|
The file contains functions to convert the byte encoding of integer values to and from little-endian and big-endian byte order. More...
#include <stdint.h>
#include "my_compiler.h"
#include "my_config.h"
#include "mysql/serialization/byte_order_helpers.h"
#include <endian.h>
Go to the source code of this file.
Macros | |
#define | HAVE_MYSYS 1 |
Functions | |
uint16_t | le16toh (uint16_t x) |
Converting a 16 bit integer from little-endian byte order to host byteorder. More... | |
uint32_t | le32toh (uint32_t x) |
Converting a 32 bit integer from little-endian byte order to host byteorder. More... | |
uint32_t | be32toh (uint32_t x) |
Converting a 32 bit integer from big-endian byte order to host byteorder. More... | |
The file contains functions to convert the byte encoding of integer values to and from little-endian and big-endian byte order.
#define HAVE_MYSYS 1 |
|
inline |
Converting a 32 bit integer from big-endian byte order to host byteorder.
x | 32-bit integer in big endian byte order |
|
inline |
Converting a 16 bit integer from little-endian byte order to host byteorder.
x | 16-bit integer in little endian byte order |
|
inline |
Converting a 32 bit integer from little-endian byte order to host byteorder.
x | 32-bit integer in little endian byte order |