import struct


def get_chunk(filereader):
    """Utility function for reading 64 bit chunks."""
    data = filereader.read(8)
    if not data:
        print("prematurely hit end of file")
        exit()
    bit64chunk = struct.unpack('Q', data)[0]
    return bit64chunk