typedargs.types.bytes module

Summary

Functions:

convert
convert_binary
default_formatter
format_hex Convert the bytes object to a hex string.
format_hexdump Convert the bytes object to a hexdump.
format_repr

Reference

typedargs.types.bytes.convert(arg, **kwargs)[source]
typedargs.types.bytes.convert_binary(arg, **kwargs)[source]
typedargs.types.bytes.default_formatter(arg, **kwargs)[source]
typedargs.types.bytes.format_repr(arg)[source]
typedargs.types.bytes.format_hex(arg)[source]

Convert the bytes object to a hex string.

typedargs.types.bytes.format_hexdump(arg)[source]

Convert the bytes object to a hexdump.

The output format will be:

<offset, 4-byte> <16-bytes of output separated by 1 space> <16 ascii characters>