(self,fmt)
Unpack data at current offset according to fmt (from struct)
Unpack data at current offset according to fmt (from struct)
Unpack data at current offset according to fmt ( from struct )
def unpack(self,fmt):
        """
            Unpack data at current offset according to fmt (from struct)
        """
        try:
            data = self.get(struct.calcsize(fmt))
            return struct.unpack(fmt,data)
        except struct.error as e:
            raise BufferError("Error unpacking struct '%s' <%s>" % 
                    (fmt,binascii.hexlify(data).decode()))
def unpack ( self , fmt ) : try : data = self . get ( struct . calcsize ( fmt ) ) return struct . unpack ( fmt , data ) except struct . error as e : raise BufferError ( "Error unpacking struct '%s' <%s>" % ( fmt , binascii . hexlify ( data ) . decode ( ) ) )