protected override ILazinator AssignCloneProperties(ILazinator clone, IncludeChildrenMode includeChildrenMode) { base.AssignCloneProperties(clone, includeChildrenMode); MemoryBlockInsetLoadingInfo typedClone = (MemoryBlockInsetLoadingInfo)clone; typedClone.LoadingOffset = LoadingOffset; return(typedClone); }
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); }