/// <summary>
        /// Consumes all data from the provider, om nom nom nom
        /// Don't use consumed provider anymore
        /// </summary>
        /// <param name="blockData"></param>
        public void Consume(ChunkDataProvider blockData)
        {
            ChunkSize = blockData.ChunkSize;

            ColumnsInfo   = blockData.ColumnsInfo;
            ChunkMetaData = blockData.ChunkMetaData;

            SetBlockBytes(blockData.GetBlocksBytes(), blockData.GetTags());

            blockData.ColumnsInfo   = null;
            blockData.ChunkMetaData = null;
        }
 public CompressibleChunk(ChunkDataProvider provider)
     : base(provider)
 {
 }
Exemple #3
0
 protected AbstractChunk(ChunkDataProvider blockDataProvider)
 {
     BlockData = blockDataProvider;
     Entities  = new EntityCollection(this);
 }