import codecs


def read_datablock_size(file, location):
    """Return the size of the datablock starting at location"""
    # Advance 8 bytes to skip signature
    file.seek(location + 8)
    # Return the 8 byte long size
    return int(codecs.encode(file.read(8), 'hex'), 16)