import struct


def parseindexentry(a):
    """decodes the DataIndexEntry made of a timestamp, config and offset as dictionary"""
    ts, cid, pos = struct.unpack("=QiQ", a.read(20))
    return dict(timestamp=ts, config=cid, offset=pos)