Use uint64_t for resume position

size_t is for data type size, not data size.