#include "pm.h"
Go to the source code of this file.
Defines | |
#define | __FILE_ID__ 0x0F |
Functions | |
PmReturn_t | obj_loadFromImg (PmMemSpace_t memspace, uint8_t const **paddr, pPmObj_t *r_pobj) |
PmReturn_t | obj_loadFromImgObj (pPmObj_t pimg, pPmObj_t *r_pobj) |
int8_t | obj_isFalse (pPmObj_t pobj) |
PmReturn_t | obj_isIn (pPmObj_t pobj, pPmObj_t pitem) |
int8_t | obj_compare (pPmObj_t pobj1, pPmObj_t pobj2) |
Object type operations.
Definition in file obj.c.
PmReturn_t obj_isIn | ( | pPmObj_t | pobj, | |
pPmObj_t | pitem | |||
) |
PmReturn_t obj_loadFromImg | ( | PmMemSpace_t | memspace, | |
uint8_t const ** | paddr, | |||
pPmObj_t * | r_pobj | |||
) |
Loads an object from an image in memory. Return pointer to object. Leave add pointing one byte past end of obj.
The following lists the simple object types and their image structures: -None: -type: int8_t - OBJ_TYPE_NON
-Int: -type: int8_t - OBJ_TYPE_INT -value: int32_t - signed integer value
-Float: -type: int8_t - OBJ_TYPE_FLOAT -value: float32_t - 32-bit floating point value
-Slice (is this allowed in img?): -type: int8_t - OBJ_TYPE_SLICE -index1: int16_t - first index. -index2: int16_t - second index.
memspace | memory space/type | |
paddr | ptr to ptr to obj return by reference: paddr pts to first byte after obj | |
r_pobj | Return arg, the loaded object. |
PmReturn_t obj_loadFromImgObj | ( | pPmObj_t | pimg, | |
pPmObj_t * | r_pobj | |||
) |