def read_large_int ( self , bits , signed = True ) : return int . from_bytes ( self . read ( bits // 8 ) , byteorder = 'little' , signed = signed )
read very small numbers in 16bit python
Reads a n - bits long integer value .
def read_large_int(self, bits, signed=True):
        """Reads a n-bits long integer value."""
        return int.from_bytes(
            self.read(bits // 8), byteorder='little', signed=signed)