Skip to content

General types mapping unexpected number of bytes #2

Description

@Chaest

Hello,

In DataCause, I find this snippet of code:

		"General32"            : Bytes(4),
		"General40"            : Bytes(4),
		"General48"            : Bytes(4),

In Data, I find this snipprt of code:

		"General32"            : Bytes(4),
		"General40"            : Bytes(4),
		"General48"            : 
			Switch(FindAttributeID, {
				"FirmwareVersion" : Struct(
					"Major" / Int8ub,
			        "Minor" / Int8ub,
			        "Revision" / Int8ub,
			        "Build" / Int24ub,
			    )
			},	default =   "Bytes" / BytesTostrHex),

Both of which seem to indicate that both General40 and General48 are using 4 bytes whereas their names clearly stipulate they should span over respectively 40 (5bytes) and 48 (6bytes) bits. Is that an error? And if not, why is that?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions