def _read_ints(self, n, size):
    data = self._fp.read((size * n))
    if (size in _BINARY_FORMAT):
        return struct.unpack(('>' + (_BINARY_FORMAT[size] * n)), data)
    else:
        if ((not size) or (len(data) != (size * n))):
            raise InvalidFileException()
        return tuple((int.from_bytes(data[i:(i + size)], 'big') for i in range(0, (size * n), size)))
def _read_ints(self, n, size):
    data = self._fp.read((size * n))
    if (size in _BINARY_FORMAT):
        return struct.unpack(('>' + (_BINARY_FORMAT[size] * n)), data)
    else:
        if ((not size) or (len(data) != (size * n))):
            raise InvalidFileException()
        return tuple((int.from_bytes(data[i:(i + size)], 'big') for i in range(0, (size * n), size)))