MySQL 8.4.4
Source Code Documentation
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
fts0vlc.ic File Reference

Full text variable length integer encoding/decoding. More...

#include <cstddef>
#include <cstdint>
#include "fts0types.h"

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...
 

Detailed Description

Full text variable length integer encoding/decoding.

Created 2007-03-27 Sunny Bains

Macro Definition Documentation

◆ INNOBASE_FTS0VLC_IC

#define INNOBASE_FTS0VLC_IC

Function Documentation

◆ fts_decode_vlc()

uint64_t fts_decode_vlc ( byte **  ptr)
inline

Decode and return the integer that was encoded using our VLC scheme.

Parameters
[in,out]ptrptr to decode from, this ptr is incremented by the number of bytes decoded
Returns
value decoded

◆ fts_encode_int()

unsigned int fts_encode_int ( uint64_t  val,
byte buf 
)
inline

Encode an integer using our VLC scheme and return the length in bytes.

Parameters
[in]valvalue to encode
[in]bufbuffer, must have enough space
Returns
length of value encoded, in bytes

◆ fts_get_encoded_len()

unsigned int fts_get_encoded_len ( uint64_t  val)
inline

Return length of val if it were encoded using our VLC scheme.

Parameters
[in]valvalue to encode
Returns
length of value encoded, in bytes