(self, f, n)
Read N integers from the bytes stream dbfile. Expects that the file
        is positioned at a key byte.
Read N integers from the bytes stream dbfile. Expects that the file
        is positioned at a key byte.
Read N integers from the bytes stream dbfile . Expects that the file is positioned at a key byte .
def read_nums(self, f, n):
        """Read N integers from the bytes stream dbfile. Expects that the file
        is positioned at a key byte.
        """

        count = 0
        key = None
        for _ in xrange(n):
            if count == 0:
                key = f.read_byte()
            code = key >> (count * 2) & 3
            if code == 0:
                yield f.read_byte()
            elif code == 1:
                yield f.read_ushort_le()
            elif code == 2:
                yield unpack_uint_le(f.read(3) + "\x00")[0]
            else:
                yield f.read_uint_le()

            count = (count + 1) % 4
def read_nums ( self , f , n ) : count = 0 key = None for _ in xrange ( n ) : if count == 0 : key = f . read_byte ( ) code = key >> ( count * 2 ) & 3 if code == 0 : yield f . read_byte ( ) elif code == 1 : yield f . read_ushort_le ( ) elif code == 2 : yield unpack_uint_le ( f . read ( 3 ) + "\x00" ) [ 0 ] else : yield f . read_uint_le ( ) count = ( count + 1 ) % 4