OpenVPN 3 Core Library
Loading...
Searching...
No Matches
bufbe.hpp File Reference
#include <cstdint>
#include <openvpn/common/socktypes.hpp>
#include <openvpn/buffer/buffer.hpp>
Include dependency graph for bufbe.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  openvpn
 
namespace  openvpn::BufferBE
 

Functions

bool openvpn::BufferBE::write_u16 (Buffer &buf, std::uint16_t v)
 Append a big-endian uint16 to buf; false if there is no room.
 
bool openvpn::BufferBE::write_u32 (Buffer &buf, std::uint32_t v)
 Append a big-endian uint32 to buf; false if there is no room.
 
bool openvpn::BufferBE::write_u64 (Buffer &buf, std::uint64_t v)
 Append a big-endian uint64 to buf; false if there is no room.
 
bool openvpn::BufferBE::read_u16 (Buffer &buf, std::uint16_t &out)
 Read a big-endian uint16 from buf into out; false if fewer than 2 bytes.
 
bool openvpn::BufferBE::read_u32 (Buffer &buf, std::uint32_t &out)
 Read a big-endian uint32 from buf into out; false if fewer than 4 bytes.
 
bool openvpn::BufferBE::read_u64 (Buffer &buf, std::uint64_t &out)
 Read a big-endian uint64 from buf into out; false if fewer than 8 bytes.