author | František Kučera <franta-hg@frantovo.cz> |
Sun, 01 Jun 2025 13:18:10 +0200 | |
branch | v_0 |
changeset 20 | a08e30243b95 |
parent 18 | 358a601bfe81 |
permissions | -rw-r--r-- |
franta-hg@18 | 1 |
/** |
franta-hg@18 | 2 |
* djm-fix |
franta-hg@18 | 3 |
* Copyright © 2025 František Kučera (Frantovo.cz, GlobalCode.info) |
franta-hg@18 | 4 |
* |
franta-hg@18 | 5 |
* This program is free software: you can redistribute it and/or modify |
franta-hg@18 | 6 |
* it under the terms of the GNU General Public License as published by |
franta-hg@18 | 7 |
* the Free Software Foundation, version 3 of the License. |
franta-hg@18 | 8 |
* |
franta-hg@18 | 9 |
* This program is distributed in the hope that it will be useful, |
franta-hg@18 | 10 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
franta-hg@18 | 11 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
franta-hg@18 | 12 |
* GNU General Public License for more details. |
franta-hg@18 | 13 |
* |
franta-hg@18 | 14 |
* You should have received a copy of the GNU General Public License |
franta-hg@18 | 15 |
* along with this program. If not, see <http://www.gnu.org/licenses/>. |
franta-hg@18 | 16 |
*/ |
franta-hg@18 | 17 |
|
franta-hg@18 | 18 |
#pragma once |
franta-hg@18 | 19 |
|
franta-hg@18 | 20 |
#include <vector> |
franta-hg@18 | 21 |
#include <stdint.h> |
franta-hg@18 | 22 |
|
franta-hg@18 | 23 |
#include "Message.h" |
franta-hg@18 | 24 |
|
franta-hg@18 | 25 |
class MessageCodec { |
franta-hg@18 | 26 |
public: |
franta-hg@18 | 27 |
Message decode(std::vector<uint8_t> data); |
franta-hg@18 | 28 |
std::vector<uint8_t> encode(Message msg); |
franta-hg@18 | 29 |
}; |