/// <summary>
        /// Clone the <see cref="UUEncoder"/> with its current state.
        /// </summary>
        /// <remarks>
        /// Creates a new <see cref="UUEncoder"/> with exactly the same state as the current encoder.
        /// </remarks>
        /// <returns>A new <see cref="UUEncoder"/> with identical state.</returns>
        public IMimeEncoder Clone()
        {
            var encoder = new UUEncoder();

            Buffer.BlockCopy(uubuf, 0, encoder.uubuf, 0, uubuf.Length);
            encoder.nsaved = nsaved;
            encoder.saved  = saved;
            encoder.uulen  = uulen;

            return(encoder);
        }
Exemple #2
0
        /// <summary>
        /// Clone the <see cref="UUEncoder"/> with its current state.
        /// </summary>
        /// <remarks>
        /// Creates a new <see cref="UUEncoder"/> with exactly the same state as the current encoder.
        /// </remarks>
        /// <returns>A new <see cref="UUEncoder"/> with identical state.</returns>
        public IMimeEncoder Clone()
        {
            var encoder = new UUEncoder();

            Array.Copy(uubuf, encoder.uubuf, uubuf.Length);
            encoder.nsaved = nsaved;
            encoder.saved  = saved;
            encoder.uulen  = uulen;

            return(encoder);
        }
		/// <summary>
		/// Clone the <see cref="UUEncoder"/> with its current state.
		/// </summary>
		/// <remarks>
		/// Creates a new <see cref="UUEncoder"/> with exactly the same state as the current encoder.
		/// </remarks>
		/// <returns>A new <see cref="UUEncoder"/> with identical state.</returns>
		public IMimeEncoder Clone ()
		{
			var encoder = new UUEncoder ();

			Buffer.BlockCopy (uubuf, 0, encoder.uubuf, 0, uubuf.Length);
			encoder.nsaved = nsaved;
			encoder.saved = saved;
			encoder.uulen = uulen;

			return encoder;
		}
		/// <summary>
		/// Clone the <see cref="UUEncoder"/> with its current state.
		/// </summary>
		/// <remarks>
		/// Creates a new <see cref="UUEncoder"/> with exactly the same state as the current encoder.
		/// </remarks>
		/// <returns>A new <see cref="UUEncoder"/> with identical state.</returns>
		public IMimeEncoder Clone ()
		{
			var encoder = new UUEncoder ();

			Array.Copy (uubuf, encoder.uubuf, uubuf.Length);
			encoder.nsaved = nsaved;
			encoder.saved = saved;
			encoder.uulen = uulen;

			return encoder;
		}