Go to the source code of this file.
Classes | |
struct | PmTuple_s |
Defines | |
#define | tuple_copy(src, dest) tuple_replicate((src), 1, (dest)) |
Typedefs | |
typedef struct PmTuple_s | PmTuple_t |
typedef struct PmTuple_s * | pPmTuple_t |
Functions | |
PmReturn_t | tuple_loadFromImg (PmMemSpace_t memspace, uint8_t const **paddr, pPmObj_t *r_ptuple) |
PmReturn_t | tuple_new (uint16_t n, pPmObj_t *r_ptuple) |
PmReturn_t | tuple_replicate (pPmObj_t ptup, int16_t n, pPmObj_t *r_ptuple) |
PmReturn_t | tuple_getItem (pPmObj_t ptup, int16_t index, pPmObj_t *r_pobj) |
Tuple object type header.
Definition in file tuple.h.
Tuple obj
Immutable ordered sequence. Contains array of ptrs to objs.
PmReturn_t tuple_getItem | ( | pPmObj_t | ptup, | |
int16_t | index, | |||
pPmObj_t * | r_pobj | |||
) |
PmReturn_t tuple_loadFromImg | ( | PmMemSpace_t | memspace, | |
uint8_t const ** | paddr, | |||
pPmObj_t * | r_ptuple | |||
) |
Creates a Tuple by loading a tuple image from memory.
Obtain space for tuple from the heap. Load all objs within the tuple img. Leave contents of paddr pointing one byte past end of last obj in tuple.
The tuple image has the following structure: -type: S8 - OBJ_TYPE_TUPLE -length U8 - N number of objects in the tuple. N objects follow in the stream.
memspace | Memory space. | |
paddr | Ptr to ptr to tuple in memspace | |
r_ptuple | Return by reference; new filled tuple |
PmReturn_t tuple_new | ( | uint16_t | n, | |
pPmObj_t * | r_ptuple | |||
) |
PmReturn_t tuple_replicate | ( | pPmObj_t | ptup, | |
int16_t | n, | |||
pPmObj_t * | r_ptuple | |||
) |