InnoDB Plugin  1.0
Macros | Functions
fts0vlc.ic File Reference
#include "fts0types.h"
Include dependency graph for fts0vlc.ic:
This graph shows which files directly or indirectly include this file:

Functions

UNIV_INLINE ulint fts_get_encoded_len (ulint val)
UNIV_INLINE ulint fts_encode_int (ulint val, byte *buf)
UNIV_INLINE ulint fts_decode_vlc (byte **ptr)

Detailed Description

Full text variable length integer encoding/decoding.

Created 2007-03-27 Sunny Bains

Function Documentation

UNIV_INLINE ulint fts_decode_vlc ( byte **  ptr)

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

Returns
value decoded
Parameters
ptrout: value decoded
UNIV_INLINE ulint fts_encode_int ( ulint  val,
byte *  buf 
)

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

Returns
length of value encoded, in bytes
Parameters
valout: length of value encoded, in bytes in: value to encode
UNIV_INLINE ulint fts_get_encoded_len ( ulint  val)

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