Example #1
0
        protected override ILazinator AssignCloneProperties(ILazinator clone, IncludeChildrenMode includeChildrenMode)
        {
            base.AssignCloneProperties(clone, includeChildrenMode);
            MemoryBlockInsetLoadingInfo typedClone = (MemoryBlockInsetLoadingInfo)clone;

            typedClone.LoadingOffset = LoadingOffset;

            return(typedClone);
        }
Example #2
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);
        }