Struct PongMessage
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
Properties
ClientMs
public uint ClientMs { get; init; }
Property Value
Tick
public uint Tick { get; init; }
Property Value
UsIntoTick
public uint UsIntoTick { get; init; }
Property Value
Methods
Deconstruct(out uint, out uint, out uint)
public void Deconstruct(out uint ClientMs, out uint Tick, out uint UsIntoTick)
Parameters
Equals(object)
public override bool Equals(object obj)
Parameters
objobject
Returns
Equals(PongMessage)
public bool Equals(PongMessage other)
Parameters
otherPongMessage
Returns
GetHashCode()
public override int GetHashCode()
Returns
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
messageReadOnlySpan<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
readerWireReaderThe reader, positioned after the type byte.
Returns
- PongMessage
The message.
ToString()
public override string ToString()
Returns
Write(ref WireWriter)
Writes the message, type byte included.
public void Write(ref WireWriter writer)
Parameters
writerWireWriterThe writer.
Operators
operator ==(PongMessage, PongMessage)
public static bool operator ==(PongMessage left, PongMessage right)
Parameters
leftPongMessagerightPongMessage
Returns
operator !=(PongMessage, PongMessage)
public static bool operator !=(PongMessage left, PongMessage right)
Parameters
leftPongMessagerightPongMessage