MySQL 8.4.2
Source Code Documentation
|
#include <sys/types.h>
#include "my_byteorder.h"
#include "my_compiler.h"
#include "my_inttypes.h"
#include "mysql.h"
#include "mysql_com.h"
Functions | |
ulong STDCALL | net_field_length (uchar **packet) |
ulong STDCALL | net_field_length_checked (uchar **packet, ulong max_length) |
uint64_t | net_field_length_ll (uchar **packet) |
uchar * | net_store_length (uchar *packet, ulonglong length) |
uint | net_length_size (ulonglong num) |
The length of space required to store the resulting length-encoded integer for the given number. More... | |
uint | net_field_length_size (const uchar *pos) |
length of buffer required to represent a length-encoded string give the length part of length encoded string. More... | |
uint64_t | net_length_size_including_self (uint64_t length) |
Calculates length of the field in case value of this field includes length of this field (self) More... | |
uint64_t net_field_length_ll | ( | uchar ** | packet | ) |
uint net_field_length_size | ( | const uchar * | pos | ) |
length of buffer required to represent a length-encoded string give the length part of length encoded string.
This function can be used before calling net_field_lenth/net_field_length_ll.
[in] | pos | Length information of length-encoded string |
uint net_length_size | ( | ulonglong | num | ) |
The length of space required to store the resulting length-encoded integer for the given number.
This function can be used at places where one needs to dynamically allocate the buffer for a given number to be stored as length- encoded integer.
[in] | num | the input number |
uint64_t net_length_size_including_self | ( | uint64_t | length | ) |
Calculates length of the field in case value of this field includes length of this field (self)
length | Size of the field without self |