Skip to main content

UTF8Dumper

This class provides functionality to serialize objects into UTF-8 encoded byte strings. It extends the base Dumper interface to ensure data is consistently formatted for binary output.

Constructor

Signature

def UTF8Dumper()

Methods


dump()

@classmethod
def dump(
obj: str
) - > bytes

Converts a string object into a UTF-8 encoded byte sequence.

Parameters

NameTypeDescription
objstrThe string object to be encoded into bytes.

Returns

TypeDescription
bytesThe raw byte representation of the input string using UTF-8 encoding.