hexdump¶
- tifffile.hexdump(data, /, *, width=75, height=24, snipat=0.75, modulo=2, ellipsis=None)¶
Return hexdump representation of bytes.
- Parameters:
data (bytes) – Bytes to represent as hexdump.
width (int) – Maximum width of hexdump.
height (int) – Maximum number of lines of hexdump.
snipat (int | float | None) – Approximate position at which to split long hexdump.
modulo (int) – Number of bytes represented in line of hexdump are modulus of this value.
ellipsis (str | None) – Characters to insert for snipped content of long hexdump. The default is ‘…’.
- Return type:
str
Examples
>>> hexdump(binascii.unhexlify('49492a00080000000e00fe0004000100')) '49 49 2a 00 08 00 00 00 0e 00 fe 00 04 00 01 00 II*.............'