from typing import List
import struct


def unpack_uint64s(data: bytes) -> List[int]:
    """ Unpack a series of integers that were packed with pack_uint64."""
    if len(data) == 0:
        return []
    return list(x[0] for x in struct.iter_unpack(">Q", data))