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
| Name | Type | Description |
|---|---|---|
| obj | str | The string object to be encoded into bytes. |
Returns
| Type | Description |
|---|---|
bytes | The raw byte representation of the input string using UTF-8 encoding. |