![]() |
MySQL 8.4.4
Source Code Documentation
|
Full text variable length integer encoding/decoding. More...
Macros | |
#define | INNOBASE_FTS0VLC_IC |
Functions | |
unsigned int | fts_get_encoded_len (uint64_t val) |
Return length of val if it were encoded using our VLC scheme. More... | |
unsigned int | fts_encode_int (uint64_t val, byte *buf) |
Encode an integer using our VLC scheme and return the length in bytes. More... | |
uint64_t | fts_decode_vlc (byte **ptr) |
Decode and return the integer that was encoded using our VLC scheme. More... | |
Full text variable length integer encoding/decoding.
Created 2007-03-27 Sunny Bains
#define INNOBASE_FTS0VLC_IC |
|
inline |
Decode and return the integer that was encoded using our VLC scheme.
[in,out] | ptr | ptr to decode from, this ptr is incremented by the number of bytes decoded |
|
inline |
Encode an integer using our VLC scheme and return the length in bytes.
[in] | val | value to encode |
[in] | buf | buffer, must have enough space |
|
inline |
Return length of val if it were encoded using our VLC scheme.
[in] | val | value to encode |