Skip to content

arg πŸ”—

Interface to the struct vaccel_arg C object.

Arg πŸ”—

Arg(data: Any)

Bases: CType

Wrapper for the vaccel_arg C struct.

Manages the creation and initialization of a C struct vaccel_arg object and provides access to it through Python properties.

Inherits

CType: Abstract base class for defining C data types.

Parameters:

Name Type Description Default

data πŸ”—

Any

The input data to be passed to the C struct.

required
Source code in vaccel/arg.py
def __init__(self, data: Any):
    """Initializes a new `Arg` object.

    Args:
        data: The input data to be passed to the C struct.
    """
    self._c_data = CAny(data)
    super().__init__()

buf property πŸ”—

buf: Any

Returns the buffer value from the underlying C struct.

Retrieves the buffer (buf) stored in the struct vaccel_arg C object. If the original data type is a Python built-in type, the buffer is converted back to that type.

Returns:

Type Description
Any

The buffer value from the C struct vaccel_arg.

c_size property πŸ”—

c_size: int

Returns the size of the object in bytes.

value property πŸ”—

value: CData

Returns the value of the underlying C struct.

Returns:

Type Description
CData

The dereferenced 'struct vaccel_arg`