Zrythm
v2.0.0-DEV
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
base64.h
1
// SPDX-FileCopyrightText: © 2024 Alexandros Theodotou <alex@zrythm.org>
2
// SPDX-License-Identifier: LicenseRef-ZrythmLicense
3
4
#pragma once
5
6
#include <QByteArray>
7
8
namespace
zrythm::utils::base64
9
{
10
inline
QByteArray
11
encode (
const
QByteArray &input)
12
{
13
return
input.toBase64 ();
14
}
15
16
inline
QByteArray
17
decode (
const
QByteArray &input)
18
{
19
return
QByteArray::fromBase64 (input);
20
}
21
};
// namespace zrythm::utils::base64
src
utils
base64.h
Generated by
1.15.0