MimeKit.Header.EncodeDkimLongValue C# (CSharp) 메소드

EncodeDkimLongValue() 정적인 개인적인 메소드

static private EncodeDkimLongValue ( MimeKit.FormatOptions format, StringBuilder encoded, int &lineLength, string value ) : void
format MimeKit.FormatOptions
encoded StringBuilder
lineLength int
value string
리턴 void
		static void EncodeDkimLongValue (FormatOptions format, StringBuilder encoded, ref int lineLength, string value)
		{
			int startIndex = 0;

			do {
				int lineLeft = format.MaxLineLength - lineLength;
				int index = Math.Min (startIndex + lineLeft, value.Length);

				encoded.Append (value.Substring (startIndex, index - startIndex));
				lineLength += (index - startIndex);

				if (index == value.Length)
					break;

				encoded.Append (format.NewLine);
				encoded.Append ('\t');
				lineLength = 1;

				startIndex = index;
			} while (true);
		}