class documentation

Parser for apps

Class Variable extensions The file extension used for this header per-model
Class Variable _type_id Undocumented

Inherited from TIFlashHeader:

Class Raw No class docstring; 3/3 properties, 0/1 class variable, 1/1 method documented
Class Method get_extension Determines the header's file extension given a targeted model
Class Method get_type Gets the subclass corresponding to a type ID, type name, or file extension if one is registered
Class Method open Creates a new header from a file given a filename
Static Method next_header_length Helper function to determine the length of the next flash header in a bytestream
Method __init__ Creates an empty flash header with specified meta and data values
Method __len__ No summary
Method binary_flag Whether this flash header's data is in binary (0x00) or Intel (0x01) format
Method bytes No summary
Method calc_data The data stored in the flash header
Method data The data stored in the flash header as either raw binary or Intel blocks
Method date The date attached to the flash header as a 3-tuple
Method device_type The (first) device targeted by the flash header
Method devices The devices targeted by the flash header
Method export Exports this header to a TIFlashFile with a specified name
Method load_bytes Loads a byte string or bytestream into this header
Method load_from_file Loads this header from a file given a file pointer and offset
Method magic The file magic for the flash header
Method name The name or basecode attached to the flash header
Method object_type The object type of the flash header
Method product_id The product ID for the header
Method revision The revision of the flash header
Method save Saves this header to the current directory given a filename and targeted model
Method summary No summary
Method type_id The (first) type ID of the flash header
Instance Variable raw Undocumented
Property calc_data_size The length of the data stored in the flash header, measured in chars
Property checksum The checksum for the flash header
Property name_length The length of the name or basecode attached to the flash header
Method __init_subclass__ Undocumented
Class Variable _type_ids Undocumented
Instance Variable _has_checksum Undocumented

Inherited from TIComponent (via TIFlashHeader):

Class Method get Converts bytes -> TIComponent
Class Method register Registers a subtype with this class for coercion
Class Method set Converts TIComponent -> bytes
Method __bool__ No summary
Method __bytes__ No summary
Method __copy__ No summary
Method __eq__ Determines if two components are the same type and have the same bytes
Method __format__ Undocumented
Method __str__ No summary
Method clear Clears this component's data
Method coerce Coerces this component to a subclass if possible using the component's type ID
Method dict No summary
Method json No summary
Method load_dict Loads this component from a JSON dictionary representation
Method load_json Loads this component from a JSON dictionary representation
Method load_string Loads this component from a string representation
Method string No summary
Method update Updates this component's metadata
Property is_empty Whether this component's data is empty

Inherited from Dock (via TIFlashHeader, TIComponent):

Method load Loads data into an instance by delegating to Loader methods based on the input's type
Class Variable loaders Undocumented
extensions = (source)

The file extension used for this header per-model

_type_id: int = (source)

Undocumented