internal IEncodableStream GetEncoderForHeader(Encoding encoding, bool useBase64Encoding, int headerTextLength) { WriteStateInfoBase base2; byte[] header = this.CreateHeader(encoding, useBase64Encoding); byte[] footer = this.CreateFooter(); if (useBase64Encoding) { base2 = new Base64WriteStateInfo(0x400, header, footer, DefaultMaxLineLength) { MimeHeaderLength = headerTextLength }; return new Base64Stream((Base64WriteStateInfo) base2); } base2 = new QuotedStringWriteStateInfo(0x400, header, footer, DefaultMaxLineLength) { MimeHeaderLength = headerTextLength }; return new QEncodedStream((QuotedStringWriteStateInfo) base2); }
internal IEncodableStream GetEncoderForHeader(Encoding encoding, bool useBase64Encoding, int headerTextLength) { WriteStateInfoBase base2; byte[] header = this.CreateHeader(encoding, useBase64Encoding); byte[] footer = this.CreateFooter(); if (useBase64Encoding) { base2 = new Base64WriteStateInfo(0x400, header, footer, DefaultMaxLineLength) { MimeHeaderLength = headerTextLength }; return(new Base64Stream((Base64WriteStateInfo)base2)); } base2 = new QuotedStringWriteStateInfo(0x400, header, footer, DefaultMaxLineLength) { MimeHeaderLength = headerTextLength }; return(new QEncodedStream((QuotedStringWriteStateInfo)base2)); }
internal QEncodedStream(QuotedStringWriteStateInfo wsi) { this.lineLength = EncodedStreamFactory.DefaultMaxLineLength; this.writeState = wsi; }
internal QEncodedStream(QuotedStringWriteStateInfo wsi) { this.lineLength = EncodedStreamFactory.DefaultMaxLineLength; this.writeState = wsi; }