internal static GatheredChunkHeader GetGatheredChunkHeader(this ArchetypeChunk self, uint seed)
 {
     return(new GatheredChunkHeader
     {
         ComponentVersionHash = self.GetComponentVersionHash(seed),
         ChunkHashFlags = self.Locked() ? 1 : 0,
         EntityCountInChunk = self.Count,
         SharedComponentCount = self.NumSharedComponents(),
         TotalTypeCount = self.GetTypeCount(),
         Seed = seed,
     });
 }