|
PROFINET IO Controller Stack 1.0.0
Modern C++ implementation of a PROFINET IO Controller stack
|
Small helpers for reading/writing big-endian ("network order") integers to/from byte buffers. PROFINET wire structures are entirely big-endian. More...
#include <cstdint>#include <cstring>#include <span>#include <stdexcept>#include <vector>
Include dependency graph for wire.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Classes | |
| class | profinet::wire::Reader |
| Lightweight cursor for parsing a big-endian byte buffer without copies. More... | |
Namespaces | |
| namespace | profinet |
| namespace | profinet::wire |
Functions | |
| void | profinet::wire::PutU8 (std::vector< std::uint8_t > &out, std::uint8_t v) |
| Append a single byte to a buffer. | |
| void | profinet::wire::PutU16 (std::vector< std::uint8_t > &out, std::uint16_t v) |
| Append a 16-bit value to a buffer in big-endian order. | |
| void | profinet::wire::PutU32 (std::vector< std::uint8_t > &out, std::uint32_t v) |
| Append a 32-bit value to a buffer in big-endian order. | |
| void | profinet::wire::PutBytes (std::vector< std::uint8_t > &out, const std::uint8_t *data, std::size_t len) |
| Append a raw byte range to a buffer. | |
| template<std::size_t N> | |
| void | profinet::wire::PutFixed (std::vector< std::uint8_t > &out, const std::array< std::uint8_t, N > &data) |
| Append a fixed-size byte array to a buffer. | |
Small helpers for reading/writing big-endian ("network order") integers to/from byte buffers. PROFINET wire structures are entirely big-endian.
Definition in file wire.h.