Skip to content

codec

Classes

Codec

Codec()
Source code in heartkit/backends/erpc/codec.py
def __init__(self):
    self.reset()

Functions

start_read_message
start_read_message() -> MessageInfo

Returns MessageInfo object.

Returns:

  • MessageInfo ( MessageInfo ) –

    MessageInfo object.

Source code in heartkit/backends/erpc/codec.py
def start_read_message(self) -> MessageInfo:
    """Returns MessageInfo object.

    Returns:
        MessageInfo: MessageInfo object.
    """
    raise NotImplementedError()
start_read_list
start_read_list() -> int

Function which should be called on list de-serialization.

Returns:

  • int ( int ) –

    Int of list length.

Source code in heartkit/backends/erpc/codec.py
def start_read_list(self) -> int:
    """Function which should be called on list de-serialization.

    Returns:
        int: Int of list length.
    """
    raise NotImplementedError()
start_read_union
start_read_union() -> int

Function which should be called on union de-serialization.

Returns:

  • int ( int ) –

    Int of union discriminator.

Source code in heartkit/backends/erpc/codec.py
def start_read_union(self) -> int:
    """Function which should be called on union de-serialization.

    Returns:
        int: Int of union discriminator.
    """
    raise NotImplementedError()