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
8namespace zrythm::utils::base64
9{
10inline QByteArray
11encode (const QByteArray &input)
12{
13 return input.toBase64 ();
14}
15
16inline QByteArray
17decode (const QByteArray &input)
18{
19 return QByteArray::fromBase64 (input);
20}
21}; // namespace zrythm::utils::base64