public SpaceAssigner1D.Space[] AllocateUnique(byte[][] data) { /// @TODO Has to use data.Distinct() and the Allocate[] function in order /// to be able to avoid a greedy behaviour. var Spaces = new SpaceAssigner1D.Space[data.Length]; for (int n = 0; n < data.Length; n++) { Spaces[n] = AllocateUnique(data[n]); } return(Spaces); }
void SpaceAssigner1DUniqueAllocatorStream_OnAllocate(byte[] Bytes, SpaceAssigner1D.Space Space) { SliceStream.CreateWithBounds(this.Stream, Space.Min, Space.Max).WriteBytes(Bytes); }