---------------------------------------------------------------------- This is the API documentation for the gdtest_sphinx_func_role library. ---------------------------------------------------------------------- ## Functions Utility functions decode(data: bytes) -> str Decode bytes back to a string. See also :py:func:`encode`. Parameters ---------- data The bytes to decode. Returns ------- str The decoded string. encode(data: str) -> bytes Encode a string to bytes. See also :py:func:`decode` for the reverse. Parameters ---------- data The string to encode. Returns ------- bytes The encoded bytes. validate(data: str) -> bool Validate that a string can be encoded. Call :py:func:`encode` first. Parameters ---------- data The string to validate. Returns ------- bool True if the string is valid for encoding.