|
ae2f::Core
|
Go to the source code of this file.
Macros | |
| #define | ae2f_ds_Alloc_cOwn ae2f_ds_cAlloc |
| #define | ae2f_ds_Alloc_cOwn_InitAuto(This) |
| Initialises the pointer. Injects the function pointers automatically. | |
| #define | ae2f_ds_Alloc_cOwn_Cpy(This, Source) |
| Allocates the memory. Copies the data from [Source] to [This]. | |
| #define | ae2f_ds_Alloc_cOwn_getSize ae2f_ds_Alloc_cRef_getSize |
| Gets the length, and element size of the class. | |
| #define | ae2f_ds_Alloc_cOwn_Read ae2f_ds_Alloc_cRef_Read |
| Gets data from a class. | |
| #define | ae2f_ds_Alloc_cOwn_Write ae2f_ds_Alloc_cRef_Write |
| Sets data to a class. | |
| #define | ae2f_ds_Alloc_cOwn_Del(This) |
| Frees the memory of [This]. | |
| #define | ae2f_ds_Alloc_cOwn_ReConfig(This, elcount, elsize) |
| Resizes the memory of [This]. Additional memories(newly allocated) must be initiated as 0. | |
| #define | ae2f_ds_Alloc_cOwn_ReSize(This, bytecount) |
| Resizes the memory of [This] as bytes count. Additional memories(newly allocated) must be initiated as 0. Element size will be suggested as 1. | |
Typedefs | |
| typedef ae2f_errint_t(* | ae2f_ds_Alloc_fpDel_t) (ae2f_struct ae2f_ds_Alloc_cOwn *_this) |
Frees the memory of _this. | |
| typedef ae2f_errint_t(* | ae2f_ds_Alloc_fpReConfig_t) (ae2f_struct ae2f_ds_Alloc_cOwn *_this, size_t elcount, size_t elsize) |
Resizes the memory of _this. Additional memories(newly allocated) must be initiated as 0. | |
Functions | |
| ae2f_SHAREDCALL ae2f_extern ae2f_errint_t | ae2f_ds_Alloc_cOwn_Init (ae2f_struct ae2f_ds_Alloc_cOwn *This, const ae2f_struct ae2f_ds_vAlloc *imp) |
| Initialises the pointer. Injects the function pointers automatically. | |
| ae2f_SHAREDCALL ae2f_extern ae2f_errint_t | ae2f_ds_Alloc_cOwn_Cpy_imp (ae2f_struct ae2f_ds_Alloc_cOwn *This, const ae2f_struct ae2f_ds_cAlloc *Source) |
| Allocates the memory. Copies the data from [Source] to [This]. | |
| #define ae2f_ds_Alloc_cOwn ae2f_ds_cAlloc |
| #define ae2f_ds_Alloc_cOwn_Cpy | ( | This, | |
| Source ) |
Allocates the memory. Copies the data from [Source] to [This].
| This | Points the allocated memory. |
| Source | Source to copy. |
| #define ae2f_ds_Alloc_cOwn_Del | ( | This | ) |
Frees the memory of [This].
| This | The instance of a class where the memory to free is located. |
| #define ae2f_ds_Alloc_cOwn_getSize ae2f_ds_Alloc_cRef_getSize |
Gets the length, and element size of the class.
| _this | The constant instance of the class. |
| pSize | A pointer where the count of the array, as an unit of elements. |
| pel | A pointer where the size of the element. |
| #define ae2f_ds_Alloc_cOwn_InitAuto | ( | This | ) |
Initialises the pointer.
Injects the function pointers automatically.
| This | Address to be set. Do not pass when it is allocated. |
| imp | Class Implementations |
| #define ae2f_ds_Alloc_cOwn_Read ae2f_ds_Alloc_cRef_Read |
Gets data from a class.
| This | The constant instance of the class. |
| idx | The Index [in an unit of bytes] where the element to copy is. |
| buff | A pointer of buffer where the element to be copied. |
| elsize | The allocated size of the [buff]. |
ae2f_errGlob_IMP_NOT_FOUND
ae2f_errGlob_PTR_IS_NULL
ae2f_ds_Alloc_Err_IDX_INVALID
| #define ae2f_ds_Alloc_cOwn_ReConfig | ( | This, | |
| elcount, | |||
| elsize ) |
Resizes the memory of [This].
Additional memories(newly allocated) must be initiated as 0.
| This | The owner of the memory. |
| elcount | The count of the elements. |
| elsize | The size of each elements. |
| #define ae2f_ds_Alloc_cOwn_ReSize | ( | This, | |
| bytecount ) |
Resizes the memory of [This] as bytes count.
Additional memories(newly allocated) must be initiated as 0.
Element size will be suggested as 1.
| This | The owner of the memory. |
| bytecount | The byte length to resize. |
| #define ae2f_ds_Alloc_cOwn_Write ae2f_ds_Alloc_cRef_Write |
Sets data to a class.
| This | The instance of the class. |
| idx | The Index [in an unit of bytes] where the element to be overwritten. |
| src | A pointer of an element. |
| srcsize | An allocated size of the [src]. |
ae2f_errGlob_IMP_NOT_FOUND
ae2f_errGlob_PTR_IS_NULL
ae2f_ds_Alloc_Err_IDX_INVALID
| typedef ae2f_errint_t(* ae2f_ds_Alloc_fpDel_t) (ae2f_struct ae2f_ds_Alloc_cOwn *_this) |
Frees the memory of _this.
| _this | The instance of a class where the memory to free is located. |
| typedef ae2f_errint_t(* ae2f_ds_Alloc_fpReConfig_t) (ae2f_struct ae2f_ds_Alloc_cOwn *_this, size_t elcount, size_t elsize) |
Resizes the memory of _this.
Additional memories(newly allocated) must be initiated as 0.
| _this | The owner of the memory. |
| elcount | The count of the elements. |
| elsize | The size of each elements. |
ae2f_errGlob_PTR_IS_NULL
ae2f_errGlob_ALLOC_FAILED
| ae2f_SHAREDCALL ae2f_extern ae2f_errint_t ae2f_ds_Alloc_cOwn_Cpy_imp | ( | ae2f_struct ae2f_ds_Alloc_cOwn * | This, |
| const ae2f_struct ae2f_ds_cAlloc * | Source ) |
Allocates the memory. Copies the data from [Source] to [This].
| This | Points the allocated memory. |
| Source | Source to copy. |
| ae2f_SHAREDCALL ae2f_extern ae2f_errint_t ae2f_ds_Alloc_cOwn_Init | ( | ae2f_struct ae2f_ds_Alloc_cOwn * | This, |
| const ae2f_struct ae2f_ds_vAlloc * | imp ) |
Initialises the pointer.
Injects the function pointers automatically.
| This | Address to be set. Do not pass when it is allocated. |
| imp | Class Implementations |
ae2f_ds_Alloc_Err_FPIMPNULL
ae2f_errGlob_PTR_IS_NULL