Skip to main content

MessageSerializer

This class provides functionality for deserializing message data from byte strings. It decodes input using the Latin-1 character set and utilizes a specialized decoder to reconstruct message objects.

Methods


loads()

@classmethod
def loads(
data: bytes
) - > object

Deserializes a byte string into a Python object using the Latin-1 encoding and a specialized MessageDecoder.

Parameters

NameTypeDescription
databytesThe raw byte sequence to be decoded, expected to be encoded in Latin-1.

Returns

TypeDescription
objectThe decoded Python object representation of the input data, typically a message instance.