potc.supports.func

raw_object

potc.supports.func.raw_object(data: bytes) → object[source]
Overview:

Raw object function support.

Arguments:
  • data (bytes): Binary data.

Returns:
  • obj (object): Loaded object,

raw_type

potc.supports.func.raw_type(name: str, data: bytes) → type[source]
Overview:

Raw type function support.

Arguments:
  • name (str): Name of the type.

  • data (bytes): Binary data.

Returns:
  • type_ (object): Loaded type,

typed_object

potc.supports.func.typed_object(type_: Type[_T], data: bytes) → _T[source]
Overview:

Typed object function support.

Arguments:
  • type_ (Type[_T]): Type of the object.

  • data (bytes): Binary data.

Returns:
  • obj (_T): Loaded typed object,

function

potc.supports.func.function(name: str, scheme, data: bytes)[source]
Overview:

Function function support.

Arguments:
  • name (str): Name of the function.

  • scheme (Type[Callable]): Scheme of the function.

  • data (bytes): Binary data.

Returns:
  • obj (Callable): Loaded function.