コード例 #1
0
ファイル: MarshallingBuffer.cs プロジェクト: danfma/db4o-net
        public virtual void TransferLastWriteTo(MarshallingBuffer other, bool storeLengthInLink
                                                )
        {
            other.AddressInParent(_lastOffSet, storeLengthInLink);
            int length = _delegate.Offset() - _lastOffSet;

            other.PrepareWrite(length);
            int otherOffset = other._delegate.Offset();

            System.Array.Copy(_delegate._buffer, _lastOffSet, other._delegate._buffer, otherOffset
                              , length);
            _delegate.Seek(_lastOffSet);
            other._delegate.Seek(otherOffset + length);
            other._lastOffSet = otherOffset;
        }
コード例 #2
0
ファイル: MarshallingBuffer.cs プロジェクト: superyfwy/db4o
		public virtual void TransferLastWriteTo(MarshallingBuffer other, bool storeLengthInLink
			)
		{
			other.AddressInParent(_lastOffSet, storeLengthInLink);
			int length = _delegate.Offset() - _lastOffSet;
			other.PrepareWrite(length);
			int otherOffset = other._delegate.Offset();
			System.Array.Copy(_delegate._buffer, _lastOffSet, other._delegate._buffer, otherOffset
				, length);
			_delegate.Seek(_lastOffSet);
			other._delegate.Seek(otherOffset + length);
			other._lastOffSet = otherOffset;
		}