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

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

ulint fts_decode_vlc ( byte **  ptr)
inline

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

Returns
value decoded
Parameters
ptrout: value decoded

◆ fts_encode_int()

ulint fts_encode_int ( ulint  val,
byte buf 
)
inline

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

Returns
length of value encoded, in bytes

◆ fts_get_encoded_len()

ulint fts_get_encoded_len ( ulint  val)
inline

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
Parameters
valout: length of value encoded, in bytes