dfx
0.1.0
Linux-based dynamic dataflow executor
Loading...
Searching...
No Matches
SerializationProtocol.hpp
1
// SPDX-FileCopyrightText: 2026 Vincent Leroy
2
// SPDX-License-Identifier: MIT
3
//
4
// This file is part of dfx.
5
//
6
// Licensed under the MIT License. See the LICENSE file in the project root
7
// for full license information.
8
9
#pragma once
10
11
// Standard includes
12
#include <cstdint>
13
#include <type_traits>
14
15
// Project includes
16
#include <dfx-utilities/CompilerSupport.hpp>
17
124
125
namespace
dfx::Core::details
126
{
127
static
constexpr
uint16_t magicValue = 0x4458;
// "DX"
128
129
struct
DFX_PACKED
PacketHeader
130
{
131
uint16_t magic;
132
uint8_t version;
133
uint8_t kind;
134
uint32_t length;
135
};
136
137
static_assert
(std::is_standard_layout_v<PacketHeader>);
138
}
// !namespace dfx::Core::details
dfx::Core::details
Definition
Framer.hpp:45
dfx::Core::details::PacketHeader
Definition
SerializationProtocol.hpp:130
lib
dfx-core
details
SerializationProtocol.hpp
Generated by
1.14.0