Base64Encoder
type Base64Encoder = Base64Encoder
A Base64 encoder reader.
Example
nv
use std.io.{Read, Cursor};
use std.base64.Base64Encoder;
let reader: Read = Cursor.new("hello".bytes());
let encoder: Read = Base64Encoder.new(reader);
assert_eq try! encoder.read_to_string(), "aGVsbG8=";
Implementions
Methods
new
pub fn new(reader: Read, mode: Mode = Mode.Standard): Base64Encoder
[src]
pub fn new(reader: Read, mode: Mode = Mode.Standard): Base64Encoder {
return _base64.Base64Encoder.new(_create_native_read(reader), mode as int) as Base64Encoder;
}
Creates a new Base64Encoder
.
new
pub fn new(reader: Read, mode: Mode = Mode.Standard): Base64Encoder
[src]
pub fn new(reader: Read, mode: Mode = Mode.Standard): Base64Encoder {
return _base64.Base64Encoder.new(_create_native_read(reader), mode as int) as Base64Encoder;
}
Creates a new Base64Encoder
.
Creates a new Base64Encoder
.