![]() |
MySQL 9.1.0
Source Code Documentation
|
Functions for reading and storing in machine-independent format. More...
#include "my_config.h"
#include "my_compiler.h"
#include <string.h>
#include <sys/types.h>
#include <arpa/inet.h>
#include "little_endian.h"
#include "my_inttypes.h"
#include "template_utils.h"
Go to the source code of this file.
Functions | |
static int32 | sint3korr (const uchar *A) |
static uint32 | uint3korr (const uchar *A) |
static ulonglong | uint5korr (const uchar *A) |
static ulonglong | uint6korr (const uchar *A) |
static ulonglong | uint7korr (const uchar *A) |
static void | int3store (uchar *T, uint A) |
int3store More... | |
static void | int5store (uchar *T, ulonglong A) |
static void | int6store (uchar *T, ulonglong A) |
int16 | sint2korr (const char *pT) |
uint16 | uint2korr (const char *pT) |
uint32 | uint3korr (const char *pT) |
int32 | sint3korr (const char *pT) |
uint32 | uint4korr (const char *pT) |
int32 | sint4korr (const char *pT) |
ulonglong | uint6korr (const char *pT) |
ulonglong | uint8korr (const char *pT) |
longlong | sint8korr (const char *pT) |
void | int2store (char *pT, uint16 A) |
void | int3store (char *pT, uint A) |
void | int4store (char *pT, uint32 A) |
void | int5store (char *pT, ulonglong A) |
void | int6store (char *pT, ulonglong A) |
void | int8store (char *pT, ulonglong A) |
void | float4store (char *V, float M) |
double | float8get (const char *M) |
void | float8store (char *V, double M) |
float | floatget (const uchar *ptr) |
void | floatstore (uchar *ptr, float val) |
double | doubleget (const uchar *ptr) |
void | doublestore (uchar *ptr, double val) |
uint16 | ushortget (const uchar *ptr) |
int16 | shortget (const uchar *ptr) |
void | shortstore (uchar *ptr, int16 val) |
int32 | longget (const uchar *ptr) |
void | longstore (uchar *ptr, int32 val) |
uint32 | ulongget (const uchar *ptr) |
longlong | longlongget (const uchar *ptr) |
void | longlongstore (uchar *ptr, longlong val) |
uint16 | load16be (const char *ptr) |
uint32 | load32be (const char *ptr) |
ALWAYS_INLINE char * | store16be (char *ptr, uint16 val) |
char * | store32be (char *ptr, uint32 val) |
uint16 | load16be (const uchar *ptr) |
uint32 | load32be (const uchar *ptr) |
ALWAYS_INLINE uchar * | store16be (uchar *ptr, uint16 val) |
uchar * | store32be (uchar *ptr, uint32 val) |
Functions for reading and storing in machine-independent format.
The little-endian variants are 'korr' (assume 'corrector') variants for integer types, but 'get' (assume 'getter') for floating point types.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
int3store
Stores an unsigned integer in a platform independent way
T | The destination buffer. Must be at least 3 bytes long |
A | The integer to store. |
Example: A int <3> with the value 1 is stored as:
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
ALWAYS_INLINE char * store16be | ( | char * | ptr, |
uint16 | val | ||
) |
ALWAYS_INLINE uchar * store16be | ( | uchar * | ptr, |
uint16 | val | ||
) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |