(self)
Reads a sometimes-compressed unsigned integer from the wrapped file.
        This is similar to the varint methods but uses a less compressed but
        faster format.
Reads a sometimes-compressed unsigned integer from the wrapped file.
        This is similar to the varint methods but uses a less compressed but
        faster format.
Reads a sometimes - compressed unsigned integer from the wrapped file . This is similar to the varint methods but uses a less compressed but faster format .
def read_tagint(self):
        """Reads a sometimes-compressed unsigned integer from the wrapped file.
        This is similar to the varint methods but uses a less compressed but
        faster format.
        """

        tb = ord(self.read(1))
        if tb == 254:
            return self.read_ushort()
        elif tb == 255:
            return self.read_uint()
        else:
            return tb
def read_tagint ( self ) : tb = ord ( self . read ( 1 ) ) if tb == 254 : return self . read_ushort ( ) elif tb == 255 : return self . read_uint ( ) else : return tb