#include <heap.h>
#include <symrepr.h>
#include <lbm_memory.h>
Go to the source code of this file.
|
bool | lbm_start_flatten (lbm_flat_value_t *v, size_t buffer_size) |
|
bool | lbm_finish_flatten (lbm_flat_value_t *v) |
|
bool | f_cons (lbm_flat_value_t *v) |
|
bool | f_lisp_array (lbm_flat_value_t *v, uint32_t num_elt) |
|
bool | f_sym (lbm_flat_value_t *v, lbm_uint sym_id) |
|
bool | f_sym_string (lbm_flat_value_t *v, char *str) |
|
bool | f_i (lbm_flat_value_t *v, lbm_int i) |
|
bool | f_u (lbm_flat_value_t *v, lbm_uint u) |
|
bool | f_b (lbm_flat_value_t *v, uint8_t b) |
|
bool | f_i32 (lbm_flat_value_t *v, int32_t w) |
|
bool | f_u32 (lbm_flat_value_t *v, uint32_t w) |
|
bool | f_float (lbm_flat_value_t *v, float f) |
|
bool | f_i64 (lbm_flat_value_t *v, int64_t w) |
|
bool | f_u64 (lbm_flat_value_t *v, uint64_t w) |
|
bool | f_lbm_array (lbm_flat_value_t *v, uint32_t num_bytes, uint8_t *data) |
|
lbm_value | flatten_value (lbm_value v) |
|
int | flatten_value_c (lbm_flat_value_t *fv, lbm_value v) |
|
int | flatten_value_size (lbm_value v, int depth) |
|
void | lbm_set_max_flatten_depth (int depth) |
|
bool | lbm_unflatten_value (lbm_flat_value_t *v, lbm_value *res) |
|
◆ FLATTEN_VALUE_ERROR_ARRAY
#define FLATTEN_VALUE_ERROR_ARRAY -3 |
◆ FLATTEN_VALUE_ERROR_BUFFER_TOO_SMALL
#define FLATTEN_VALUE_ERROR_BUFFER_TOO_SMALL -2 |
◆ FLATTEN_VALUE_ERROR_CANNOT_BE_FLATTENED
#define FLATTEN_VALUE_ERROR_CANNOT_BE_FLATTENED -1 |
◆ FLATTEN_VALUE_ERROR_CIRCULAR
#define FLATTEN_VALUE_ERROR_CIRCULAR -4 |
◆ FLATTEN_VALUE_ERROR_FATAL
#define FLATTEN_VALUE_ERROR_FATAL -7 |
◆ FLATTEN_VALUE_ERROR_MAXIMUM_DEPTH
#define FLATTEN_VALUE_ERROR_MAXIMUM_DEPTH -5 |
◆ FLATTEN_VALUE_ERROR_NOT_ENOUGH_MEMORY
#define FLATTEN_VALUE_ERROR_NOT_ENOUGH_MEMORY -6 |
◆ FLATTEN_VALUE_MAXIMUM_DEPTH
#define FLATTEN_VALUE_MAXIMUM_DEPTH 2000 |
◆ FLATTEN_VALUE_OK
#define FLATTEN_VALUE_OK 0 |
◆ S_BYTE_VALUE
#define S_BYTE_VALUE 0x04 |
◆ S_CONS
◆ S_DOUBLE_VALUE
#define S_DOUBLE_VALUE 0x0C |
◆ S_FLOAT_VALUE
#define S_FLOAT_VALUE 0x09 |
◆ S_I28_VALUE
◆ S_I32_VALUE
◆ S_I56_VALUE
◆ S_I64_VALUE
◆ S_LBM_ARRAY
◆ S_LBM_LISP_ARRAY
#define S_LBM_LISP_ARRAY 0x1F |
◆ S_SYM_STRING
#define S_SYM_STRING 0x03 |
◆ S_SYM_VALUE
◆ S_U28_VALUE
◆ S_U32_VALUE
◆ S_U56_VALUE
◆ S_U64_VALUE
◆ UNFLATTEN_GC_RETRY
#define UNFLATTEN_GC_RETRY -1 |
◆ UNFLATTEN_MALFORMED
#define UNFLATTEN_MALFORMED -2 |
◆ UNFLATTEN_OK
◆ f_b()
◆ f_cons()
◆ f_float()
◆ f_i()
◆ f_i32()
◆ f_i64()
◆ f_lbm_array()
◆ f_lisp_array()
◆ f_sym()
◆ f_sym_string()
◆ f_u()
◆ f_u32()
◆ f_u64()
◆ flatten_value()
◆ flatten_value_c()
◆ flatten_value_size()
int flatten_value_size |
( |
lbm_value |
v, |
|
|
int |
depth |
|
) |
| |
◆ lbm_finish_flatten()
◆ lbm_set_max_flatten_depth()
void lbm_set_max_flatten_depth |
( |
int |
depth | ) |
|
◆ lbm_start_flatten()
◆ lbm_unflatten_value()
Unflatten a flat value stored in an lbm_memory array onto the heap
- Parameters
-
v | Flat value to unflatten. |
res | Pointer to where the result lbm_value should be stored. |
- Returns
- True on success and false otherwise.