OpenVPN 3 Core Library
Loading...
Searching...
No Matches
openvpn::BufferBE Namespace Reference

Functions

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

Function Documentation

◆ read_u16()

bool openvpn::BufferBE::read_u16 ( Buffer buf,
std::uint16_t &  out 
)
inline

Read a big-endian uint16 from buf into out; false if fewer than 2 bytes.

Definition at line 53 of file bufbe.hpp.

Here is the caller graph for this function:

◆ read_u32()

bool openvpn::BufferBE::read_u32 ( Buffer buf,
std::uint32_t &  out 
)
inline

Read a big-endian uint32 from buf into out; false if fewer than 4 bytes.

Definition at line 64 of file bufbe.hpp.

Here is the caller graph for this function:

◆ read_u64()

bool openvpn::BufferBE::read_u64 ( Buffer buf,
std::uint64_t &  out 
)
inline

Read a big-endian uint64 from buf into out; false if fewer than 8 bytes.

Definition at line 75 of file bufbe.hpp.

Here is the caller graph for this function:

◆ write_u16()

bool openvpn::BufferBE::write_u16 ( Buffer buf,
std::uint16_t  v 
)
inline

Append a big-endian uint16 to buf; false if there is no room.

Definition at line 26 of file bufbe.hpp.

Here is the caller graph for this function:

◆ write_u32()

bool openvpn::BufferBE::write_u32 ( Buffer buf,
std::uint32_t  v 
)
inline

Append a big-endian uint32 to buf; false if there is no room.

Definition at line 36 of file bufbe.hpp.

Here is the caller graph for this function:

◆ write_u64()

bool openvpn::BufferBE::write_u64 ( Buffer buf,
std::uint64_t  v 
)
inline

Append a big-endian uint64 to buf; false if there is no room.

Definition at line 46 of file bufbe.hpp.

Here is the caller graph for this function: