exa.common.api.proto_serialization.datum.serialize

Contents

exa.common.api.proto_serialization.datum.serialize#

serialize(value)#

Serialize a piece of data into a bitstring.

Parameters:

value (None | bool | str | int | float | complex | ndarray | Sequence) – same as in pack().

Returns:

Bitstring that encodes value.

Return type:

bytes