Fixed replay length (it is not ULEB)
This commit is contained in:
@@ -1,10 +1,9 @@
|
||||
SSH = 0
|
||||
SH = 1
|
||||
SS = 2
|
||||
S = 3
|
||||
A = 4
|
||||
B = 5
|
||||
C = 6
|
||||
D = 7
|
||||
F = 8
|
||||
N = 9
|
||||
SSH = b"XH"
|
||||
SH = b"SH"
|
||||
SS = b"X"
|
||||
S = b"S"
|
||||
A = b"A"
|
||||
B = b"B"
|
||||
C = b"C"
|
||||
D = b"D"
|
||||
F = b"F"
|
||||
|
||||
@@ -105,6 +105,7 @@ class Serializable:
|
||||
|
||||
def pack(self, byte_order = BYTEORDER_LITTLE):
|
||||
struct_fmt = byte_order + self.get_struct_fmt()
|
||||
#print(struct_fmt, self.get_value())
|
||||
return struct.pack(struct_fmt, *self.get_value())
|
||||
|
||||
class Serializer:
|
||||
|
||||
Reference in New Issue
Block a user