cloudpendulumclient.bytes

Functions

from_bytes(t, d)

De-serialize some big endian byte array d to type t.

to_bytes(t, d)

Serialize some data d of type t to a big endian byte array.

cloudpendulumclient.bytes.to_bytes(t, d)

Serialize some data d of type t to a big endian byte array. If d is None, the byte array will be empty. Used for serializing data before sending it on the network.

cloudpendulumclient.bytes.from_bytes(t, d)

De-serialize some big endian byte array d to type t. If d is empty, it will be converted into a None instead. Used for de-serializing data after receiving it on the network.