dragon.native.value

The Dragon native value is an ctypes object allocated from shared memory. The return value is a synchronized wrapper for the object, and the object itself can be accessed via the value attribute of a Value.

value = dragon.native.value.Value(typecode_or_type = ctypes.c_char, value = 0)

Classes

Value

This class implements Dragon value resides in the Dragon channel.

class Value

This class implements Dragon value resides in the Dragon channel.

__init__(typecode_or_type, value: int = 0, m_uid: int = 4611686018427387904)

Initialize a value object. :param typecode_or_type: the typecode or type is returned from the dictionary, _TYPECODE_TO_TYPE :type typecode_or_type: str or ctypes, required :param value: the value for the object :type value: int, optional :param m_uid: memory pool to create the channel in and message to write value and typecode_or_type in managed memory, defaults to _DEF_MUID :type m_uid: int, optional

property value: object

Get the current value.

Returns

The current value

Return type

object