public LazinatorMemory(MemoryChunkCollection memoryChunkCollection) { MultipleMemoryChunks = memoryChunkCollection; SingleMemoryChunk = null; StartIndex = 0; Offset = 0; Length = memoryChunkCollection.Length; }
public LazinatorMemory(MemoryChunk memoryChunk, int startPosition, long length) { SingleMemoryChunk = memoryChunk; MultipleMemoryChunks = null; StartIndex = 0; if (startPosition < 0) { throw new ArgumentException(); } Offset = startPosition; if (length < 0) { Length = 0; } else { Length = length; } }
public virtual MemoryChunkCollection DeepCopy() { var collection = new MemoryChunkCollection(MemoryChunks); return(collection); }
public LazinatorMemory(IEnumerable <MemoryChunk> moreMemoryChunks, int startIndex, int startPosition, long length) : this(null, startPosition, length) { MultipleMemoryChunks = new MemoryChunkCollection(moreMemoryChunks); StartIndex = startIndex; }
public LazinatorMemory(MemoryChunkCollection moreMemoryChunks, int startIndex, int startPosition, long length) : this(null, startPosition, length) { MultipleMemoryChunks = moreMemoryChunks; StartIndex = startIndex; }