Group key2value
Key-to-Value functions to avoid using custom comparators .More...
Public Functions
| Type | Name |
|---|---|
| LIBMDBX_API double | mdbx_double_from_key (const MDBX_val key) Get a double value from a 8-byte key. |
| LIBMDBX_API float | mdbx_float_from_key (const MDBX_val key) Get a float value from a 4-byte key. |
| LIBMDBX_API int32_t | mdbx_int32_from_key (const MDBX_val key) Get a int32_t value from a 4-byte key. |
| LIBMDBX_API int64_t | mdbx_int64_from_key (const MDBX_val key) Get a int64_t value from a 8-byte key. |
| LIBMDBX_API int64_t | mdbx_jsonInteger_from_key (const MDBX_val key) Get a int64_t JSON-number value from a 8-byte key. |
Detailed Description
See also: Value-to-Key functions
Public Functions Documentation
function mdbx_double_from_key
Get a double value from a 8-byte key.
LIBMDBX_API double mdbx_double_from_key (
const MDBX_val key
)
Parameters:
keyThe key made by mdbx_key_from_double().
Returns:
The original double value.
function mdbx_float_from_key
Get a float value from a 4-byte key.
LIBMDBX_API float mdbx_float_from_key (
const MDBX_val key
)
Parameters:
keyThe key made by mdbx_key_from_float().
Returns:
The original float value.
function mdbx_int32_from_key
Get a int32_t value from a 4-byte key.
LIBMDBX_API int32_t mdbx_int32_from_key (
const MDBX_val key
)
Parameters:
keyThe key made by mdbx_key_from_int32().
Returns:
The original int32_t value.
function mdbx_int64_from_key
Get a int64_t value from a 8-byte key.
LIBMDBX_API int64_t mdbx_int64_from_key (
const MDBX_val key
)
Parameters:
keyThe key made by mdbx_key_from_int64().
Returns:
The original int64_t value.
function mdbx_jsonInteger_from_key
Get a int64_t JSON-number value from a 8-byte key.
LIBMDBX_API int64_t mdbx_jsonInteger_from_key (
const MDBX_val key
)
Parameters:
keyThe key made by mdbx_key_from_jsonInteger().
Returns:
The original int64_t value.