Contents Menu Expand Light mode Dark mode Auto light/dark, in light mode Auto light/dark, in dark mode Skip to content
hexrec 0.4.4 documentation
hexrec 0.4.4 documentation
  • Overview
  • Installation
  • Command Line Interface
  • Reference
    • base
      • file_types
      • TOKEN_COLOR_CODES
      • colorize_tokens
      • convert
      • guess_format_name
      • guess_format_type
      • load
      • merge
      • BaseFile
      • BaseRecord
      • BaseTag
    • formats
    • asciihex
      • AsciiHexFile
      • AsciiHexRecord
      • AsciiHexTag
    • avr
      • AvrFile
      • AvrRecord
      • AvrTag
    • ihex
      • IhexFile
      • IhexRecord
      • IhexTag
    • mos
      • MosFile
      • MosRecord
      • MosTag
    • raw
      • RawFile
      • RawRecord
      • RawTag
    • sqtp
      • from_numbers
      • from_strings
      • to_numbers
      • to_strings
    • srec
      • SIZE_TO_ADDRESS_FORMAT
      • SrecFile
      • SrecRecord
      • SrecTag
    • titxt
      • TiTxtFile
      • TiTxtRecord
      • TiTxtTag
    • xtek
      • XtekFile
      • XtekRecord
      • XtekTag
    • hexdump
      • CHAR_PRINTABLE
      • CHAR_TOKENS
      • DEFAULT_FORMAT_ORDER
      • hexdump_core
    • utils
      • SUFFIX_SCALE
      • DEFAULT_DELETE
      • chop
      • hexlify
      • parse_int
      • unhexlify
      • SparseMemoryIO
    • xxd
      • CHAR_ASCII
      • CHAR_EBCDIC
      • parse_seek
      • xxd_core
  • Contributing
  • Authors
  • Changelog
Back to top
View this page

utilsΒΆ

Generic utility functions.

Attributes

SUFFIX_SCALE

Integer suffix to scale factor.

DEFAULT_DELETE

Delete from hex strings.

Functions

chop

Chops a vector.

hexlify

Converts raw bytes into a hexadecimal byte string.

parse_int

Parses an integer.

unhexlify

Converts a hexadecimal byte string into raw bytes.

Classes

SparseMemoryIO

Sparse memory I/O wrapper.

Next
SUFFIX_SCALE
Previous
hexdump_core
Copyright © 2013-2025, Andrea Zoppi
Made with Sphinx and @pradyunsg's Furo
Last updated on 2025-07-04