// Token: 0x060002AC RID: 684 RVA: 0x0000F0FC File Offset: 0x0000D2FC
 public override int Read(byte[] buffer, int offset, int count)
 {
     if (buffer == null)
     {
         throw new ArgumentNullException("buffer");
     }
     if (buffer.Length - offset < count)
     {
         throw new ArgumentException(string.Format(CultureInfo.InstalledUICulture, "buffer is not long enough: buffer.Length={0}, offset={1}, count={2}", new object[]
         {
             buffer.Length,
             offset,
             count
         }));
     }
     if (this.DoBase64Conversion)
     {
         int byteCount = (count * 3 / 4 < 1) ? 1 : (count * 3 / 4);
         using (MemoryStream memoryStream = new MemoryStream(buffer))
         {
             return(StreamHelper.CopyStreamWithBase64Conversion(this.internalStream, memoryStream, byteCount, true));
         }
     }
     return(this.internalStream.Read(buffer, offset, count));
 }
 // Token: 0x060002AD RID: 685 RVA: 0x0000F1B4 File Offset: 0x0000D3B4
 public void CopyStream(Stream outputStream, int count)
 {
     if (outputStream == null)
     {
         throw new ArgumentNullException("outputStream");
     }
     if (this.DoBase64Conversion)
     {
         StreamHelper.CopyStreamWithBase64Conversion(this.internalStream, outputStream, count, true);
         return;
     }
     StreamHelper.CopyStream(this.internalStream, outputStream, count);
 }