Spicy
Public Member Functions | List of all members
spicy::rt::base64::Stream Class Reference

#include <base64.h>

Public Member Functions

 Stream (const Stream &)=default
 
 Stream (Stream &&) noexcept=default
 
Streamoperator= (const Stream &)=default
 
Streamoperator= (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 ()
 

Detailed Description

State for streaming base64 encoding/decoding. Each instance may be be used only for either for encoding or decoding.

Member Function Documentation

◆ decode() [1/2]

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.

Parameters
datanext chunk of data to decode
Returns
newly encoded data

◆ decode() [2/2]

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.

Parameters
datanext chunk of data to decode
Returns
newly encoded data

◆ encode() [1/2]

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.

Parameters
datanext chunk of data to encode
Returns
newly encoded data

◆ encode() [2/2]

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.

Parameters
datanext chunk of data to encode
Returns
newly encoded data

◆ finish()

hilti::rt::Bytes Stream::finish ( )

Signals the end of encoding/decoding.

Returns
any additional data becoming available at the end of the process

The documentation for this class was generated from the following files: