LangTag.ExtModuleData¶
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
dummy |
[ |
r/w |
a dummy pointer for alignment. |
Methods¶
class |
|
|
|
|
Details¶
- class LangTag.ExtModuleData¶
All the fields in the
LangTag.ExtModuleData
structure are private to theLangTag.ExtModuleData
implementation.- classmethod new(size, finalizer)¶
- Parameters:
size (
int
) – real size to allocate memory for the object.finalizer (
LangTag.DestroyFunc
) – a callback function to destroy the content.
- Returns:
- Return type:
Create a new instance of
LangTag.ExtModuleData
. this function allows to create an inherited instance like:struct _my_module_data_t { LtExtModuleData parent; ...own members... };
- ref()¶
- Returns:
the same self object.
- Return type:
Increases the reference count of self.
- unref()¶
Decreases the reference count of self. when its reference count drops to 0, the object is finalized (i.e. its memory is freed).