// By default, convert base64 value to string and call WriteString.
 public override Task WriteBase64Async( byte[] buffer, int index, int count ) {
     if ( base64Encoder == null ) {
         base64Encoder = new XmlRawWriterBase64Encoder( this );
     }
     // Encode will call WriteRaw to write out the encoded characters
     return base64Encoder.EncodeAsync( buffer, index, count );
 }
 public override void WriteBase64(byte[] buffer, int index, int count)
 {
     if (this.base64Encoder == null)
     {
         this.base64Encoder = new XmlRawWriterBase64Encoder(this);
     }
     this.base64Encoder.Encode(buffer, index, count);
 }
 public override void WriteBase64(byte[] buffer, int index, int count)
 {
     if (this.base64Encoder == null)
     {
         this.base64Encoder = new XmlRawWriterBase64Encoder(this);
     }
     this.base64Encoder.Encode(buffer, index, count);
 }
Ejemplo n.º 4
0
 public override Task WriteBase64Async(byte[] buffer, int index, int count)
 {
     if (_base64Encoder == null)
     {
         _base64Encoder = new XmlRawWriterBase64Encoder(this);
     }
     // Encode will call WriteRaw to write out the encoded characters
     return(_base64Encoder.EncodeAsync(buffer, index, count));
 }
Ejemplo n.º 5
0
 // By default, convert base64 value to string and call WriteString.
 public override void WriteBase64(byte[] buffer, int index, int count)
 {
     if (base64Encoder == null)
     {
         base64Encoder = new XmlRawWriterBase64Encoder(this);
     }
     // Encode will call WriteRaw to write out the encoded characters
     base64Encoder.Encode(buffer, index, count);
 }