12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152module juptune.data.base;
struct Base64Decoder(
Alphabet
)
{
/++ ALIASES ++/
///
alias Machine = ;
///
alias StateMachine = Machine.;
/++ FUNCTIONS ++/
///
Result decode(OutStreamFunc)(const char[] input, OutStreamFunc outStream);
///
Result decodeGroup(ubyte[3] group);
///
Result finish(OutStreamFunc)(OutStreamFunc outStream);
/++ ENUMS ++/
///
enum State
{
///
buffer,
///
newLine,
///
newLineMidPadding,
///
padding,
///
done
}
/++ VARIABLES ++/
///
char[4] _buffer;
///
ubyte _bufferLength;
///
size_t _lineLength;
///
ubyte _paddingCount;
///
StateMachine _state;
}
| Name | Description |
|---|---|
| Machine | |
| StateMachine |
| Name | Description |
|---|---|
| State |
| Name | Description |
|---|---|
| decode | |
| decodeGroup | |
| finish |
| Name | Description |
|---|---|
| _buffer | |
| _bufferLength | |
| _lineLength | |
| _paddingCount | |
| _state |