Add enum of compress
Change int to uint64 when read offset