vibe.d beta banner
get vibe.d
0.10.0

Asynchronous I/O that doesn’t get in your way, written in D

Function createBase64OutputStream

Creates a Base64 encoding stream.max_bytes_per_line

Base64OutputStreamImpl!(C62,C63,CPAD,OutputStream) createBase64OutputStream(char C62 = '+', char C63 = '/', char CPAD = '=', OutputStream) (
  OutputStream output,
  ulong max_bytes_per_line = 57
)
if (isOutputStream!OutputStream);

By default, the stream generates a MIME compatible Base64 encoding.

Parameters

NameDescription
output The output sink to which the encoded result is written.
max_bytes_per_line The maximum number of input bytes after which a line break is inserted into the output. Defaults to 57, according to the MIME standard.
Authors

Jan Krüger, Sönke Ludwig

Copyright

© 2012-2016 Sönke Ludwig

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.