LangTag.ExtModuleData

Fields

Name

Type

Access

Description

dummy

[object]

r/w

a dummy pointer for alignment.

Methods

class

new (size, finalizer)

ref ()

unref ()

Details

class LangTag.ExtModuleData

All the fields in the LangTag.ExtModuleData structure are private to the LangTag.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:

a LangTag.ExtModuleData.

Return type:

LangTag.ExtModuleData

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:

LangTag.ExtModuleData

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).