FastLED
3.10.8
Loading...
Searching...
No Matches
base64.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
fl/stl/stdint.h
"
4
#include "
fl/stl/string.h
"
5
#include "
fl/stl/vector.h
"
6
#include "
fl/stl/span.h
"
7
#include "
fl/stl/noexcept.h
"
8
9
namespace
fl
{
10
11
// Base64 encode/decode utilities for binary data transport.
12
// Used by JSON-RPC to transfer binary blobs as base64 strings.
13
14
// Encode binary data to a base64 string.
15
fl::string
base64_encode
(fl::span<const fl::u8> data)
FL_NO_EXCEPT
;
16
17
// Decode a base64 string back to binary data.
18
// Returns empty vector on invalid input.
19
fl::vector<fl::u8>
base64_decode
(
const
fl::string& encoded)
FL_NO_EXCEPT
;
20
21
}
// namespace fl
fl::FL_NO_EXCEPT
u8 u8 fract8 blur_amount FL_NO_EXCEPT
Definition
blur.h:186
fl::base64_decode
fl::vector< fl::u8 > base64_decode(const fl::string &encoded) FL_NO_EXCEPT
Definition
base64.cpp.hpp:63
fl::base64_encode
fl::string base64_encode(fl::span< const fl::u8 > data) FL_NO_EXCEPT
Definition
base64.cpp.hpp:23
fl
Base definition for an LED controller.
Definition
crgb.hpp:179
noexcept.h
span.h
stdint.h
string.h
vector.h
fl
remote
rpc
base64.h
Generated on Sun Oct 18 2026 00:56:52 for FastLED by
1.13.2