![]() |
Spicy
|
#include <base64.h>
Public Member Functions | |
Stream (const Stream &)=default | |
Stream (Stream &&) noexcept=default | |
Stream & | operator= (const Stream &)=default |
Stream & | operator= (Stream &&) noexcept=default |
hilti::rt::Bytes | encode (const hilti::rt::Bytes &data) |
hilti::rt::Bytes | encode (const hilti::rt::stream::View &data) |
hilti::rt::Bytes | decode (const hilti::rt::Bytes &data) |
hilti::rt::Bytes | decode (const hilti::rt::stream::View &data) |
hilti::rt::Bytes | finish () |
State for streaming base64 encoding/decoding. Each instance may be be used only for either for encoding or decoding.
hilti::rt::Bytes Stream::decode | ( | const hilti::rt::Bytes & | data | ) |
Decode a chunk of data. Each chunk will continue where the previous one left off.
data | next chunk of data to decode |
hilti::rt::Bytes Stream::decode | ( | const hilti::rt::stream::View & | data | ) |
Decode a chunk of data. Each chunk will continue where the previous one left off.
data | next chunk of data to decode |
hilti::rt::Bytes Stream::encode | ( | const hilti::rt::Bytes & | data | ) |
Encode a chunk of data. Each chunk will continue where the previous one left off.
data | next chunk of data to encode |
hilti::rt::Bytes Stream::encode | ( | const hilti::rt::stream::View & | data | ) |
Encode a chunk of data. Each chunk will continue where the previous one left off.
data | next chunk of data to encode |
hilti::rt::Bytes Stream::finish | ( | ) |
Signals the end of encoding/decoding.