Table of Contents

Struct PongMessage

Namespace
Typhon.Protocol
Assembly
Typhon.Protocol.dll

PONG (0x03): the reply to PING, with how far the server is into its tick (W31: u32, a tick exceeds 65 535 µs).

public readonly struct PongMessage : IEquatable<PongMessage>
Implements
Inherited Members

Constructors

PongMessage(uint, uint, uint)

PONG (0x03): the reply to PING, with how far the server is into its tick (W31: u32, a tick exceeds 65 535 µs).

public PongMessage(uint ClientMs, uint Tick, uint UsIntoTick)

Parameters

ClientMs uint
Tick uint
UsIntoTick uint

Properties

ClientMs

public uint ClientMs { get; init; }

Property Value

uint

Tick

public uint Tick { get; init; }

Property Value

uint

UsIntoTick

public uint UsIntoTick { get; init; }

Property Value

uint

Methods

Deconstruct(out uint, out uint, out uint)

public void Deconstruct(out uint ClientMs, out uint Tick, out uint UsIntoTick)

Parameters

ClientMs uint
Tick uint
UsIntoTick uint

Equals(object)

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

Equals(PongMessage)

public bool Equals(PongMessage other)

Parameters

other PongMessage

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

Parse(ReadOnlySpan<byte>)

Reads a whole PONG message: its type byte, its body, and nothing after it.

public static PongMessage Parse(ReadOnlySpan<byte> message)

Parameters

message ReadOnlySpan<byte>

The message.

Returns

PongMessage

The message.

Read(ref WireReader)

Reads the message body; the type byte has already been read.

public static PongMessage Read(ref WireReader reader)

Parameters

reader WireReader

The reader, positioned after the type byte.

Returns

PongMessage

The message.

ToString()

public override string ToString()

Returns

string

Write(ref WireWriter)

Writes the message, type byte included.

public void Write(ref WireWriter writer)

Parameters

writer WireWriter

The writer.

Operators

operator ==(PongMessage, PongMessage)

public static bool operator ==(PongMessage left, PongMessage right)

Parameters

left PongMessage
right PongMessage

Returns

bool

operator !=(PongMessage, PongMessage)

public static bool operator !=(PongMessage left, PongMessage right)

Parameters

left PongMessage
right PongMessage

Returns

bool