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
9namespace 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.
15fl::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.
19fl::vector<fl::u8> base64_decode(const fl::string& encoded) FL_NO_EXCEPT;
20
21} // namespace fl
u8 u8 fract8 blur_amount FL_NO_EXCEPT
Definition blur.h:186
fl::vector< fl::u8 > base64_decode(const fl::string &encoded) FL_NO_EXCEPT
fl::string base64_encode(fl::span< const fl::u8 > data) FL_NO_EXCEPT
Base definition for an LED controller.
Definition crgb.hpp:179