Contents Menu Expand Light mode Dark mode Auto light/dark mode
bstruct 0.4.0 documentation
bstruct 0.4.0 documentation
  • Quickstart
  • Supported Types
  • Patch Existing Classes
  • Fallback to struct.Struct
  • API
  • License

Project Links

  • GitHub
  • PyPI
Back to top
Edit this page

bstruct#

Simple and efficient binary parsing using regular type annotations. Supports easy fallback to Python’s built-in struct library for maximum performance.

Contents#

  • Quickstart
  • Supported Types
    • Basic Types
    • Strings
    • IntEnum
    • Nested Classes
    • Arrays
  • Patch Existing Classes
  • Fallback to struct.Struct
  • API
    • BstructError
    • Encodings
    • Length
    • Size
    • Struct
    • compile_format()
    • decode()
    • decode_all()
    • decode_from()
    • encode()
    • get_size()
    • get_struct()
    • patch()
  • License

Project Links

  • GitHub
  • PyPI
Next
Quickstart
Copyright © 2022, flxbe
Made with Sphinx and @pradyunsg's Furo
On this page
  • bstruct
    • Contents