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
8namespace 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.
14fl::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.
18fl::vector<fl::u8> base64_decode(const fl::string& encoded);
19
20} // namespace fl
fl::vector< fl::u8 > base64_decode(const fl::string &encoded)
fl::string base64_encode(fl::span< const fl::u8 > data)
Base definition for an LED controller.
Definition crgb.hpp:179