Class PackageHeader

Class Documentation

class PackageHeader

This class represents the header for primary packages.

Public Types

using _package_size_type = int32_t

Public Functions

PackageHeader() = default
virtual ~PackageHeader() = default

Public Static Functions

static inline size_t getPackageLength(uint8_t *buf)

Reads a buffer, interpreting the next bytes as the size of the contained package.

Parameters:

buf – The given byte stream containing a serialized package

Returns:

The size of the given serialized package