123456789101112131415161718192021222324252627282930313233343536373839module juptune.data.base;
struct Base64Encoder(
Alphabet
)
{
/++ FUNCTIONS ++/
///
Result encode(OutStreamFunc)(const ubyte[] input, OutStreamFunc outStream);
///
char[4] encodeGroup(ubyte[3] group);
///
Result finish(OutStreamFunc)(OutStreamFunc outStream);
///
Result writeToStream(OutStreamFunc)(char[] chars, OutStreamFunc outStream);
/++ ENUMS ++/
///
enum BufferState
{
///
empty,
///
one,
///
two
}
/++ VARIABLES ++/
///
ubyte[3] _buffer;
///
BufferState _bufferState;
///
size_t _lineLength;
}
| Name | Description |
|---|---|
| BufferState |
| Name | Description |
|---|---|
| encode | |
| encodeGroup | |
| finish | |
| writeToStream |
| Name | Description |
|---|---|
| _buffer | |
| _bufferState | |
| _lineLength |