struct MAGES::Recorder::PacketHeader

Overview

The packet header. More…

struct PacketHeader
{
    // properties

    PacketType Type;
    int Size;

    // methods

    PacketHeader(PacketType type, int size);
};

Detailed Documentation

The packet header.

Properties

PacketType Type

Gets or sets the type of the packet.

int Size

Gets or sets the size of the packet following.

Methods

PacketHeader(PacketType type, int size)

Initializes a new instance of the PacketHeader struct.

Parameters:

type

The type of the packet.

size

The size (in bytes) of the following payload.