![]() |
Flutter Engine
The Flutter Engine
|
#include <SkBase64.h>
Public Types | |
enum | Error { kNoError , kPadError , kBadCharError } |
Static Public Member Functions | |
static size_t | Encode (const void *src, size_t length, void *dst, const char *encode=nullptr) |
static size_t | EncodedSize (size_t srcDataLength) |
static Error | Decode (const void *src, size_t srcLength, void *dst, size_t *dstLength) |
Definition at line 13 of file SkBase64.h.
enum SkBase64::Error |
Enumerator | |
---|---|
kNoError | |
kPadError | |
kBadCharError |
Definition at line 15 of file SkBase64.h.
|
static |
Base64 decodes src into dst.
Normally this is called once with 'dst' nullptr to get the required size, then again with an allocated 'dst' pointer to do the actual encoding.
dst | nullptr or a pointer to a buffer large enough to receive the result |
dstLength | assigned the length dst is required to be. Must not be nullptr. |
Definition at line 37 of file SkBase64.cpp.
|
static |
Base64 encodes src into dst.
Normally this is called once with 'dst' nullptr to get the required size, then again with an allocated 'dst' pointer to do the actual encoding.
dst | nullptr or a pointer to a buffer large enough to receive the result |
encode | nullptr for default encoding or a pointer to at least 65 chars. encode[64] will be used as the pad character. Encodings other than the default encoding cannot be decoded. |
Definition at line 113 of file SkBase64.cpp.
|
inlinestatic |
Returns the length of the buffer that needs to be allocated to encode srcDataLength bytes.
Definition at line 40 of file SkBase64.h.