FastLED
3.9.15
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
8
namespace
fl
{
9
10
// Base64 encode/decode utilities for binary data transport.
11
// Used by JSON-RPC to transfer binary blobs as base64 strings.
12
13
// Encode binary data to a base64 string.
14
fl::string
base64_encode
(fl::span<const fl::u8> data);
15
16
// Decode a base64 string back to binary data.
17
// Returns empty vector on invalid input.
18
fl::vector<fl::u8>
base64_decode
(
const
fl::string& encoded);
19
20
}
// namespace fl
fl::base64_decode
fl::vector< fl::u8 > base64_decode(const fl::string &encoded)
Definition
base64.cpp.hpp:62
fl::base64_encode
fl::string base64_encode(fl::span< const fl::u8 > data)
Definition
base64.cpp.hpp:22
fl
Base definition for an LED controller.
Definition
crgb.hpp:179
span.h
stdint.h
string.h
vector.h
fl
remote
rpc
base64.h
Generated on Tue Jun 16 2026 00:06:59 for FastLED by
1.13.2