6f70e27011
Avoid passing String by-value, which is slightly less efficient as it involves a full copy-constructor/tempstring creation.
14 lines
221 B
C++
14 lines
221 B
C++
#ifndef CORE_BASE64_H_
|
|
#define CORE_BASE64_H_
|
|
|
|
class base64
|
|
{
|
|
public:
|
|
static String encode(const uint8_t * data, size_t length);
|
|
static String encode(const String& text);
|
|
private:
|
|
};
|
|
|
|
|
|
#endif /* CORE_BASE64_H_ */
|