(self, pkt, s)
return  s[self.sz:], self.m2i(pkt, struct.unpack(self.fmt, s[:self.sz])[0])
Extract an internal value from a string
Extract an internal value from a string
Extract an internal value from a string
def getfield(self, pkt, s):
        """Extract an internal value from a string"""
        return  s[self.sz:], self.m2i(pkt, struct.unpack(self.fmt, s[:self.sz])[0])
def getfield ( self , pkt , s ) : return s [ self . sz : ] , self . m2i ( pkt , struct . unpack ( self . fmt , s [ : self . sz ] ) [ 0 ] )