public override ILazinator CloneLazinator(IncludeChildrenMode includeChildrenMode = IncludeChildrenMode.IncludeAllChildren, CloneBufferOptions cloneBufferOptions = CloneBufferOptions.IndependentBuffers) { MemoryBlockInsetLoadingInfo clone; if (cloneBufferOptions == CloneBufferOptions.NoBuffer) { clone = new MemoryBlockInsetLoadingInfo(includeChildrenMode); clone.LazinatorObjectVersion = LazinatorObjectVersion; clone = (MemoryBlockInsetLoadingInfo)AssignCloneProperties(clone, includeChildrenMode); } else { LazinatorMemory bytes = EncodeOrRecycleToNewBuffer(includeChildrenMode, OriginalIncludeChildrenMode, IsDirty, DescendantIsDirty, false, LazinatorMemoryStorage, this); clone = new MemoryBlockInsetLoadingInfo(bytes); } return(clone); }
public BufferWriterContainer(int minimumSize, LazinatorMemory completedMemory) { Writer = new BufferWriter(minimumSize, completedMemory); }
public MemoryBlockInsetLoadingInfo(LazinatorMemory serializedBytes, ILazinator parent = null, IncludeChildrenMode originalIncludeChildrenMode = IncludeChildrenMode.IncludeAllChildren, int?lazinatorObjectVersion = null) : base(serializedBytes, parent, originalIncludeChildrenMode, lazinatorObjectVersion) { }
public void SetFromLazinatorMemory(LazinatorMemory lazinatorMemory) { SetChunks(lazinatorMemory.EnumerateMemoryChunks()); SetSegments(lazinatorMemory.EnumerateMemoryBlockIDsAndSlices().ToList()); }
public MemorySegmentCollection(LazinatorMemory lazinatorMemory, bool recycle) : this(lazinatorMemory.EnumerateMemoryChunks().ToList(), recycle) { }
public MemorySegmentCollection(LazinatorMemory serializedBytes, ILazinator parent = null, IncludeChildrenMode originalIncludeChildrenMode = IncludeChildrenMode.IncludeAllChildren, int?lazinatorObjectVersion = null) : base(serializedBytes, parent, originalIncludeChildrenMode, lazinatorObjectVersion) { }