MessageCodec.h
branchv_0
changeset 18 358a601bfe81
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/MessageCodec.h	Sun May 11 00:30:03 2025 +0200
     1.3 @@ -0,0 +1,29 @@
     1.4 +/**
     1.5 + * djm-fix
     1.6 + * Copyright © 2025 František Kučera (Frantovo.cz, GlobalCode.info)
     1.7 + *
     1.8 + * This program is free software: you can redistribute it and/or modify
     1.9 + * it under the terms of the GNU General Public License as published by
    1.10 + * the Free Software Foundation, version 3 of the License.
    1.11 + *
    1.12 + * This program is distributed in the hope that it will be useful,
    1.13 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
    1.14 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    1.15 + * GNU General Public License for more details.
    1.16 + *
    1.17 + * You should have received a copy of the GNU General Public License
    1.18 + * along with this program. If not, see <http://www.gnu.org/licenses/>.
    1.19 + */
    1.20 +
    1.21 +#pragma once
    1.22 +
    1.23 +#include <vector>
    1.24 +#include <stdint.h>
    1.25 +
    1.26 +#include "Message.h"
    1.27 +
    1.28 +class MessageCodec {
    1.29 +public:
    1.30 +	Message decode(std::vector<uint8_t> data);
    1.31 +	std::vector<uint8_t> encode(Message msg);
    1.32 +};
    1.33 \ No newline at end of file