(self)
| 10798 | endian: Endianness |
| 10799 | |
| 10800 | def __str__(self): |
| 10801 | decode_str = "{}B".format(self.type.width) |
| 10802 | return ' '.join([f"{x:02x}" for x in struct.unpack(decode_str, self.value)]) |
| 10803 | |
| 10804 | def __repr__(self): |
| 10805 | return f"<StructuredDataValue type:{self.type} value:{self}>" |