ae2f::Core
Loading...
Searching...
No Matches
Own.h
Go to the documentation of this file.
1
5
9#define ae2f_ds_Alloc_cOwn ae2f_ds_cAlloc
10
11#pragma region Virtual Functions
12
22);
23
37 size_t elcount,
38 size_t elsize
39);
40
41
42#pragma endregion
43
44
45#pragma region inits
46
63);
64
78#define ae2f_ds_Alloc_cOwn_InitAuto(This) ae2f_ds_Alloc_cOwn_Init(This, &ae2f_ds_vAlloc_cLinear)
79
96 const ae2f_struct ae2f_ds_cAlloc* Source
97);
98
114#define ae2f_ds_Alloc_cOwn_Cpy(This, Source) ae2f_ds_Alloc_cOwn_Cpy_imp(This, ae2f_reinterpret_cast(const ae2f_struct ae2f_ds_cAlloc*, Source))
115
116#pragma endregion
117
118
119#pragma region Methods Call
120
134#define ae2f_ds_Alloc_cOwn_getSize ae2f_ds_Alloc_cRef_getSize
135
150#define ae2f_ds_Alloc_cOwn_Read ae2f_ds_Alloc_cRef_Read
151
167#define ae2f_ds_Alloc_cOwn_Write ae2f_ds_Alloc_cRef_Write
168
177#define ae2f_ds_Alloc_cOwn_Del(This) _ae2f_ds_Alloc_CallVoid(This, Del)
178
191#define ae2f_ds_Alloc_cOwn_ReConfig(This, elcount, elsize) _ae2f_ds_Alloc_Call(This, ReConfig, elcount, elsize)
192
208#define ae2f_ds_Alloc_cOwn_ReSize(This, bytecount) ae2f_ds_Alloc_cOwn_ReConfig(This, bytecount, 1)
209
210#pragma endregion
#define ae2f_SHAREDCALL
Definition Call.h:58
#define ae2f_struct
In C, keyword 'struct' must be written in front of the structure's name in order to use as a type nam...
Definition Cast.h:81
#define ae2f_extern
Suggests the existence of external variable or function, in naming of C. [non-mangling].
Definition Cast.h:85
ae2f_errint_t(* ae2f_ds_Alloc_fpDel_t)(ae2f_struct ae2f_ds_Alloc_cOwn *_this)
Frees the memory of _this.
Definition Own.h:20
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
Definition Own.h:9
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_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.
Definition Own.h:35
uint8_t ae2f_errint_t
Informs that this number represents the error.
Definition errGlob.h:10
The data holder for [cRef] and [cOwn].
Definition Alloc.h:39
Structure for virtual function pointer.
Definition Alloc.h:20