コード例 #1
0
        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);
        }
コード例 #2
0
 public BufferWriterContainer(int minimumSize, LazinatorMemory completedMemory)
 {
     Writer = new BufferWriter(minimumSize, completedMemory);
 }
コード例 #3
0
 public MemoryBlockInsetLoadingInfo(LazinatorMemory serializedBytes, ILazinator parent = null, IncludeChildrenMode originalIncludeChildrenMode = IncludeChildrenMode.IncludeAllChildren, int?lazinatorObjectVersion = null) : base(serializedBytes, parent, originalIncludeChildrenMode, lazinatorObjectVersion)
 {
 }
コード例 #4
0
 public void SetFromLazinatorMemory(LazinatorMemory lazinatorMemory)
 {
     SetChunks(lazinatorMemory.EnumerateMemoryChunks());
     SetSegments(lazinatorMemory.EnumerateMemoryBlockIDsAndSlices().ToList());
 }
コード例 #5
0
 public MemorySegmentCollection(LazinatorMemory lazinatorMemory, bool recycle) : this(lazinatorMemory.EnumerateMemoryChunks().ToList(), recycle)
 {
 }
コード例 #6
0
 public MemorySegmentCollection(LazinatorMemory serializedBytes, ILazinator parent = null, IncludeChildrenMode originalIncludeChildrenMode = IncludeChildrenMode.IncludeAllChildren, int?lazinatorObjectVersion = null) : base(serializedBytes, parent, originalIncludeChildrenMode, lazinatorObjectVersion)
 {
 }