Beispiel #1
0
        public void WriteAsBase64(ArraySegment <byte> data)
        {
            ValidateCapacity(Base64Encoding.GetEncodedLength(data.Count));

            end += Base64Encoding.Encode(data, segment.Array, segment.Offset + end);
        }
Beispiel #2
0
 public static int Encode(ArraySegment <byte> segment, byte[] output, int outputOffset)
 {
     return(Base64Encoding.Encode(segment.Array, segment.Offset, segment.Count, output, outputOffset));
 }