Module ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Import alias Import alias ClassDef bases NameLoad body Pass decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Str Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Str Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Str Assign NameStore Num FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str If UnaryOpNot NameLoad body Assign NameStore Call NameLoad keyword AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Num body Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Str Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Str Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad NameLoad attr If CompareNotEq Call NameLoad NameLoad Num body Raise Call NameLoad BinOpMod Str NameLoad Assign NameStore Str For NameStore NameLoad body AugAssignAdd NameStore Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list decorator_list
N/A bowcaster.common.support LittleEndian bowcaster.common.support BigEndian bowcaster.development OverflowBuffer bowcaster.development SectionCreator bowcaster.common.support Logging checksums.libacos LibAcosChecksum N/A re N/A struct AmbitHeaderException N/A Exception N/A N/A N/A MysteryHeader N/A object N/A N/A 
    Class to generate a stand-in for the 58 byte unidentified header
    at the beginning of Netgear R6200 firmware images.
     N/A MAGIC *#$^ N/A MAGIC_OFF 0 N/A HEADER_SIZE 58 N/A HEADER_SIZE_OFF 4 N/A VERSION_STRING_OFF 9 N/A VERSION_STRING V100.101.102.103_104.105.106 N/A PART_1_CHECKSUM_OFF 16 N/A PART_1_SIZE_OFF 24 N/A PART_2_SIZE 0 N/A PART_2_SIZE_OFF 28 N/A PART_1_2_CHECKSUM_OFF 32 N/A HEADER_CHECKSUM_OFF 36 N/A BOARD_ID U12H192T00_NETGEAR N/A BOARD_ID_OFF 40 __init__ N/A N/A self image_data logger N/A None N/A N/A 
        Params
        ------
        image_data: The actual data of the firmware image this header should
                    describe and be prepended to.
        logger:     Optional. A Bowcaster Logging object. If a logger is not 
                    provided, one will be instantiated.
         N/A N/A logger N/A N/A logger N/A Logging max_level N/A Logging DEBUG N/A N/A self logger logger N/A N/A N/A logger LOG_DEBUG Creating ambit header. N/A N/A self size N/A self HEADER_SIZE N/A N/A N/A logger LOG_INFO Calculating checksum of TRX image. N/A N/A self trx_image_checksum N/A N/A self __checksum image_data N/A N/A N/A logger LOG_DEBUG N/A Calculated TRX image checksum: 0x%08x N/A self trx_image_checksum N/A N/A self trx_image_sz N/A len image_data N/A N/A self version N/A N/A self __calc_version_string N/A self VERSION_STRING N/A N/A N/A logger LOG_INFO Building header without checksum. N/A header N/A N/A self __build_header N/A N/A N/A logger LOG_INFO Calculating header checksum. N/A chksum N/A N/A self __checksum header N/A N/A N/A logger LOG_DEBUG N/A Calculated header checksum: 0x%08x chksum N/A N/A N/A logger LOG_INFO Building header with checksum. N/A header N/A N/A self __build_header checksum chksum N/A N/A self header header N/A __build_header N/A N/A self checksum N/A 0 N/A N/A logger N/A self logger N/A SC N/A SectionCreator BigEndian logger logger N/A N/A N/A SC string_section N/A self MAGIC_OFF N/A self MAGIC description Magic bytes for ambit header. N/A N/A N/A SC gadget_section N/A self HEADER_SIZE_OFF N/A self size Size field representing length of ambit header. N/A N/A N/A SC gadget_section N/A self HEADER_CHECKSUM_OFF checksum N/A N/A N/A SC string_section N/A self BOARD_ID_OFF N/A self BOARD_ID description Board ID string. N/A N/A N/A SC gadget_section N/A self PART_1_SIZE_OFF N/A self trx_image_sz description Size of the TRX image. including TRX header, kernel, and filesystem. N/A N/A N/A SC gadget_section N/A self PART_2_SIZE_OFF N/A self PART_2_SIZE description Size 0 for unused second partition. N/A N/A N/A SC gadget_section N/A self PART_1_CHECKSUM_OFF N/A self trx_image_checksum description Checksum of the TRX image. N/A N/A N/A SC gadget_section N/A self PART_1_2_CHECKSUM_OFF N/A self trx_image_checksum description Checksum of the TRX image. Partition 2 is unused. N/A N/A N/A SC string_section N/A self VERSION_STRING_OFF N/A self version description Packed version string. N/A buf N/A OverflowBuffer BigEndian N/A self size overflow_sections N/A SC section_list logger logger N/A buf N/A __checksum N/A N/A self header N/A N/A N/A data N/A str header N/A size N/A len data N/A chksum N/A LibAcosChecksum data size N/A N/A chksum checksum N/A __calc_version_string N/A N/A self version_string N/A N/A N/A version_regex V(\d+?)\.(\d+?)\.(\d+?)\.(\d+?)_(\d+?)\.(\d+?)\.(\d+) N/A logger N/A self logger N/A N/A N/A logger LOG_DEBUG N/A Calculating version bytes from string: %s version_string N/A parts N/A N/A N/A N/A re match version_regex version_string groups N/A N/A N/A len parts 7 N/A N/A N/A AmbitHeaderException N/A Invalid version string: %s version_string N/A version_bytes N/A part parts N/A N/A version_bytes N/A N/A struct pack B N/A int part N/A version_bytes N/A __str__ N/A N/A self N/A N/A N/A N/A str N/A self header N/A find_offset N/A N/A self value N/A N/A N/A 
        Find the offset of the given value in the Bowcaster OverflowBuffer string.
        
        Params
        ------
        value:  The value whose offset should be found. May be a string or
                integer. If an integer is provided, it will be converted to
                a packed binary string with the same endianness as the
                underlying OverflowBuffer object.
         N/A N/A N/A N/A self header find_offset value N/A N/A