/// <summary> /// Initializes a new instance of the <see cref="MimeKit.Encodings.YEncoder"/> class. /// </summary> /// <remarks> /// Creates a new yEnc encoder. /// </remarks> /// <param name="maxLineLength">The line length to use.</param> public YEncoder (int maxLineLength = 128) { if (maxLineLength < 0 || maxLineLength > 254) throw new ArgumentOutOfRangeException (nameof (maxLineLength)); lineLength = maxLineLength; crc = new Crc32 (-1); Reset (); }
/// <summary> /// Initializes a new instance of the <see cref="MimeKit.Encodings.YDecoder"/> class. /// </summary> /// <remarks> /// Creates a new yEnc decoder. /// </remarks> /// <param name="payloadOnly"> /// If <c>true</c>, decoding begins immediately rather than after finding an =ybegin line. /// </param> public YDecoder (bool payloadOnly) { initial = payloadOnly ? YDecoderState.Payload : YDecoderState.ExpectYBegin; crc = new Crc32 (-1); Reset (); }