MySQL 8.3.0
Source Code Documentation
fts0vlc.ic File Reference

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

#include "fts0types.h"

Macros

#define INNOBASE_FTS0VLC_IC
 

Functions

static ulint fts_get_encoded_len (ulint val)
 Return length of val if it were encoded using our VLC scheme. More...
 
static ulint fts_encode_int (ulint val, byte *buf)
 Encode an integer using our VLC scheme and return the length in bytes. More...
 
static ulint 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()

static ulint fts_decode_vlc ( byte **  ptr)
inlinestatic

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

Returns
value decoded

◆ fts_encode_int()

static ulint fts_encode_int ( ulint  val,
byte buf 
)
inlinestatic

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

Returns
length of value encoded, in bytes

◆ fts_get_encoded_len()

static ulint fts_get_encoded_len ( ulint  val)
inlinestatic

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

FIXME: We will need to be able encode 8 bytes value

Returns
length of value encoded, in bytes