API Documentation
Static Public Member Functions | List of all members
nkExport::Base64Encoder Class Referencefinal

Allows to encode and decode data into / from base64 encoding. More...

Static Public Member Functions

static nkMemory::Buffer encode (nkMemory::BufferView< unsigned char > data)
 
static nkMemory::Buffer decode (nkMemory::BufferView< unsigned char > data)
 

Detailed Description

Allows to encode and decode data into / from base64 encoding.

Base64 encoding can be used to exchange data with various softwares. It is used on the web, for instance.

Member Function Documentation

◆ encode()

static nkMemory::Buffer nkExport::Base64Encoder::encode ( nkMemory::BufferView< unsigned char >  data)
static

Encodes binary data into base64.

Parameters
dataThe buffer of data to encode.
Returns
A new buffer, containing the data encoded in base64.

◆ decode()

static nkMemory::Buffer nkExport::Base64Encoder::decode ( nkMemory::BufferView< unsigned char >  data)
static

Decodes base64 data into its binary representation.

Parameters
dataThe base64 buffer to decode.
Returns
The binary data decoded.

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