Adding LELongField

This commit is contained in:
Martin Gallo 2017-11-29 21:36:03 -03:00 committed by Guillaume Valadon
parent 680900dbbf
commit 74eba54954
2 changed files with 6 additions and 1 deletions

View File

@ -875,7 +875,8 @@ Legend:
LESignedIntField
XIntField
LongField
LongField
LELongField
XLongField
LELongField

View File

@ -365,6 +365,10 @@ class LongField(Field):
def __init__(self, name, default):
Field.__init__(self, name, default, "Q")
class LELongField(LongField):
def __init__(self, name, default):
Field.__init__(self, name, default, "<Q")
class XLongField(LongField):
def i2repr(self, pkt, x):
return lhex(self.i2h(pkt, x))