Click or drag to resize

NetOutgoingMessage Class

Outgoing message used to send data to remote peer(s)
Inheritance Hierarchy
SystemObject
  Internal.Lidgren.NetworkNetBuffer
    Internal.Lidgren.NetworkNetOutgoingMessage

Namespace:  Internal.Lidgren.Network
Assembly:  NeoAxis.Core (in NeoAxis.Core.dll) Version: 2024.1.1.0 (2024.1.1.0)
Syntax
C#
public sealed class NetOutgoingMessage : NetBuffer

The NetOutgoingMessage type exposes the following members.

Properties
  NameDescription
Public propertyData
Gets or sets the internal data buffer
(Inherited from NetBuffer.)
Public propertyLengthBits
Gets or sets the length of the used portion of the buffer in bits
(Inherited from NetBuffer.)
Public propertyLengthBytes
Gets or sets the length of the used portion of the buffer in bytes
(Inherited from NetBuffer.)
Public propertyPosition
Gets or sets the read position in the buffer, in bits (not bytes)
(Inherited from NetBuffer.)
Public propertyPositionInBytes
Gets the position in the buffer in bytes; note that the bits of the first returned byte may already have been read - check the Position property to make sure.
(Inherited from NetBuffer.)
Top
Methods
  NameDescription
Public methodEnsureBufferSize
Ensures the buffer can hold this number of bits
(Inherited from NetBuffer.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodPeekBoolean
Reads a 1-bit Boolean without advancing the read pointer
(Inherited from NetBuffer.)
Public methodPeekByte
Reads a Byte without advancing the read pointer
(Inherited from NetBuffer.)
Public methodPeekByte(Int32)
Reads the specified number of bits into a Byte without advancing the read pointer
(Inherited from NetBuffer.)
Public methodPeekBytes(Int32)
Reads the specified number of bytes without advancing the read pointer
(Inherited from NetBuffer.)
Public methodPeekBytes(Void) (Inherited from NetBuffer.)
Public methodPeekBytes(Byte, Int32, Int32)
Reads the specified number of bytes without advancing the read pointer
(Inherited from NetBuffer.)
Public methodPeekDataBuffer
Gets the internal data buffer
(Inherited from NetBuffer.)
Public methodPeekDouble
Reads a 64-bit Double without advancing the read pointer
(Inherited from NetBuffer.)
Public methodPeekFloat
Reads a 32-bit Single without advancing the read pointer
(Inherited from NetBuffer.)
Public methodPeekHalf
Writes a 16 bit floating point value
(Inherited from NetBuffer.)
Public methodPeekInt16
Reads an Int16 without advancing the read pointer
(Inherited from NetBuffer.)
Public methodPeekInt32
Reads an Int32 without advancing the read pointer
(Inherited from NetBuffer.)
Public methodPeekInt32(Int32)
Reads the specified number of bits into an Int32 without advancing the read pointer
(Inherited from NetBuffer.)
Public methodPeekInt64
Reads an Int64 without advancing the read pointer
(Inherited from NetBuffer.)
Public methodPeekInt64(Int32)
Reads the specified number of bits into an Int64 without advancing the read pointer
(Inherited from NetBuffer.)
Public methodPeekSByte
Reads an SByte without advancing the read pointer
(Inherited from NetBuffer.)
Public methodPeekSingle
Reads a 32-bit Single without advancing the read pointer
(Inherited from NetBuffer.)
Public methodPeekString
Reads a string without advancing the read pointer
(Inherited from NetBuffer.)
Public methodPeekStringSize
Reads the string byte size prefix without advancing the read pointer. Take note that this is the size in bytes, not the character length of the string.
(Inherited from NetBuffer.)
Public methodPeekUInt16
Reads a UInt16 without advancing the read pointer
(Inherited from NetBuffer.)
Public methodPeekUInt32
Reads a UInt32 without advancing the read pointer
(Inherited from NetBuffer.)
Public methodPeekUInt32(Int32)
Reads the specified number of bits into a UInt32 without advancing the read pointer
(Inherited from NetBuffer.)
Public methodPeekUInt64
Reads a UInt64 without advancing the read pointer
(Inherited from NetBuffer.)
Public methodPeekUInt64(Int32)
Reads the specified number of bits into an UInt64 without advancing the read pointer
(Inherited from NetBuffer.)
Public methodReadBits(Span, Void) (Inherited from NetBuffer.)
Public methodReadBits(Byte, Int32, Int32)
Reads the specified number of bits into a preallocated array
(Inherited from NetBuffer.)
Public methodReadBoolean
Reads a boolean value (stored as a single bit) written using Write(bool)
(Inherited from NetBuffer.)
Public methodReadByte
Reads a byte
(Inherited from NetBuffer.)
Public methodReadByte(Byte)
Reads a byte and returns true or false for success
(Inherited from NetBuffer.)
Public methodReadByte(Int32)
Reads 1 to 8 bits into a byte
(Inherited from NetBuffer.)
Public methodReadBytes(Int32)
Reads the specified number of bytes
(Inherited from NetBuffer.)
Public methodReadBytes(Void) (Inherited from NetBuffer.)
Public methodReadBytes(Int32, Byte)
Reads the specified number of bytes and returns true for success
(Inherited from NetBuffer.)
Public methodReadBytes(Byte, Int32, Int32)
Reads the specified number of bytes into a preallocated array
(Inherited from NetBuffer.)
Public methodReadDouble
Reads a 64 bit floating point value written using Write(Double)
(Inherited from NetBuffer.)
Public methodReadFloat
Reads a 32 bit floating point value written using Write(Single)
(Inherited from NetBuffer.)
Public methodReadHalf
Reads a 16 bit floating point value written using Write(Half)
(Inherited from NetBuffer.)
Public methodReadInt16
Reads a 16 bit signed integer written using Write(Int16)
(Inherited from NetBuffer.)
Public methodReadInt32
Reads a 32 bit signed integer written using Write(Int32)
(Inherited from NetBuffer.)
Public methodReadInt32(Int32)
Reads a signed integer stored in 1 to 32 bits, written using Write(Int32, Int32)
(Inherited from NetBuffer.)
Public methodReadInt32(Int32)
Reads a 32 bit signed integer written using Write(Int32)
(Inherited from NetBuffer.)
Public methodReadInt64
Reads a 64 bit signed integer written using Write(Int64)
(Inherited from NetBuffer.)
Public methodReadInt64(Int32)
Reads a signed integer stored in 1 to 64 bits, written using Write(Int64, Int32)
(Inherited from NetBuffer.)
Public methodReadIPEndPoint
Reads a stored IPv4 endpoint description
(Inherited from NetBuffer.)
Public methodReadPadBits
Pads data with enough bits to reach a full byte. Decreases cpu usage for subsequent byte writes.
(Inherited from NetBuffer.)
Public methodReadRangedInteger(Int32, Int32)
Reads a 32 bit integer value written using WriteRangedInteger()
(Inherited from NetBuffer.)
Public methodReadRangedInteger(Int64, Int64)
Reads a 64 bit integer value written using WriteRangedInteger() (64 version)
(Inherited from NetBuffer.)
Public methodReadRangedSingle
Reads a 32 bit floating point value written using WriteRangedSingle()
(Inherited from NetBuffer.)
Public methodReadSByte
Reads a signed byte
(Inherited from NetBuffer.)
Public methodReadSignedSingle
Reads a 32 bit floating point value written using WriteSignedSingle()
(Inherited from NetBuffer.)
Public methodReadSingle
Reads a 32 bit floating point value written using Write(Single)
(Inherited from NetBuffer.)
Public methodReadSingle(Single)
Reads a 32 bit floating point value written using Write(Single)
(Inherited from NetBuffer.)
Public methodReadString
Reads a string written using Write(string)
(Inherited from NetBuffer.)
Public methodReadString(String)
Reads a string written using Write(string) and returns true for success
(Inherited from NetBuffer.)
Public methodReadTime
Reads a value, in local time comparable to NetTime.Now, written using WriteTime() for the connection supplied
(Inherited from NetBuffer.)
Public methodReadUInt16
Reads a 16 bit unsigned integer written using Write(UInt16)
(Inherited from NetBuffer.)
Public methodReadUInt32
Reads an 32 bit unsigned integer written using Write(UInt32)
(Inherited from NetBuffer.)
Public methodReadUInt32(Int32)
Reads an unsigned integer stored in 1 to 32 bits, written using Write(UInt32, Int32)
(Inherited from NetBuffer.)
Public methodReadUInt32(UInt32)
Reads an 32 bit unsigned integer written using Write(UInt32) and returns true for success
(Inherited from NetBuffer.)
Public methodReadUInt64
Reads a 64 bit unsigned integer written using Write(UInt64)
(Inherited from NetBuffer.)
Public methodReadUInt64(Int32)
Reads an unsigned integer stored in 1 to 64 bits, written using Write(UInt64, Int32)
(Inherited from NetBuffer.)
Public methodReadUnitSingle
Reads a 32 bit floating point value written using WriteUnitSingle()
(Inherited from NetBuffer.)
Public methodReadVariableInt32
Reads a variable sized Int32 written using WriteVariableInt32()
(Inherited from NetBuffer.)
Public methodReadVariableInt64
Reads a variable sized Int64 written using WriteVariableInt64()
(Inherited from NetBuffer.)
Public methodReadVariableUInt32
Reads a variable sized UInt32 written using WriteVariableUInt32()
(Inherited from NetBuffer.)
Public methodReadVariableUInt32(UInt32)
Reads a variable sized UInt32 written using WriteVariableUInt32() and returns true for success
(Inherited from NetBuffer.)
Public methodReadVariableUInt32WithBytesReaded
Reads a variable sized UInt32 written using WriteVariableUInt32()
(Inherited from NetBuffer.)
Public methodReadVariableUInt64
Reads a variable sized UInt32 written using WriteVariableInt64()
(Inherited from NetBuffer.)
Public methodSkipPadBits
Pads data with enough bits to reach a full byte. Decreases cpu usage for subsequent byte writes.
(Inherited from NetBuffer.)
Public methodSkipPadBits(Int32)
Pads data with the specified number of bits.
(Inherited from NetBuffer.)
Public methodToString
Returns a string that represents this object
(Overrides ObjectToString.)
Public methodTryReadBytes (Inherited from NetBuffer.)
Public methodWrite(Boolean)
Writes a boolean value using 1 bit
(Inherited from NetBuffer.)
Public methodWrite(Byte)
Write a byte
(Inherited from NetBuffer.)
Public methodWrite(Byte)
Writes all bytes in an array
(Inherited from NetBuffer.)
Public methodWrite(Double)
Writes a 64 bit floating point value
(Inherited from NetBuffer.)
Public methodWrite(Half)
Writes a 16 bit floating point value
(Inherited from NetBuffer.)
Public methodWrite(Int16)
Writes a signed 16 bit integer
(Inherited from NetBuffer.)
Public methodWrite(Int32)
Writes a 32 bit signed integer
(Inherited from NetBuffer.)
Public methodWrite(Int64)
Writes a 64 bit signed integer
(Inherited from NetBuffer.)
Public methodWrite(IPEndPoint)
Writes an endpoint description
(Inherited from NetBuffer.)
Public methodWrite(ReadOnlySpan) (Inherited from NetBuffer.)
Public methodWrite(SByte)
Writes a signed byte
(Inherited from NetBuffer.)
Public methodWrite(Single)
Writes a 32 bit floating point value
(Inherited from NetBuffer.)
Public methodWrite(String)
Write a string
(Inherited from NetBuffer.)
Public methodWrite(UInt16)
Writes an unsigned 16 bit integer
(Inherited from NetBuffer.)
Public methodWrite(UInt32)
Writes a 32 bit unsigned integer
(Inherited from NetBuffer.)
Public methodWrite(UInt64)
Writes a 64 bit unsigned integer
(Inherited from NetBuffer.)
Public methodWrite(NetBuffer)
Append all the bits of message to this message
(Inherited from NetBuffer.)
Public methodWrite(Byte, Int32)
Writes 1 to 8 bits of a byte
(Inherited from NetBuffer.)
Public methodWrite(Int32, Int32)
Writes a signed integer using 1 to 32 bits
(Inherited from NetBuffer.)
Public methodWrite(Int64, Int32)
Writes a signed integer using 1 to 64 bits
(Inherited from NetBuffer.)
Public methodWrite(UInt16, Int32)
Writes an unsigned integer using 1 to 16 bits
(Inherited from NetBuffer.)
Public methodWrite(UInt32, Int32)
Writes a 32 bit signed integer
(Inherited from NetBuffer.)
Public methodWrite(UInt64, Int32)
Writes an unsigned integer using 1 to 64 bits
(Inherited from NetBuffer.)
Public methodWrite(Byte, Int32, Int32)
Writes the specified number of bytes from an array
(Inherited from NetBuffer.)
Public methodWriteAt(Int32, Byte)
Writes a byte at a given offset in the buffer
(Inherited from NetBuffer.)
Public methodWriteAt(Int32, Int16)
Writes a 16 bit signed integer at a given offset in the buffer
(Inherited from NetBuffer.)
Public methodWriteAt(Int32, Int32)
Writes a 32 bit signed integer at a given offset in the buffer
(Inherited from NetBuffer.)
Public methodWriteAt(Int32, UInt16)
Writes a 16 bit unsigned integer at a given offset in the buffer
(Inherited from NetBuffer.)
Public methodWriteAt(Int32, UInt32)
Writes a 32 bit unsigned integer at a given offset in the buffer
(Inherited from NetBuffer.)
Public methodWriteAt(Int32, UInt64)
Writes a 64 bit unsigned integer at a given offset in the buffer
(Inherited from NetBuffer.)
Public methodWritePadBits
Pads data with enough bits to reach a full byte. Decreases cpu usage for subsequent byte writes.
(Inherited from NetBuffer.)
Public methodWritePadBits(Int32)
Pads data with the specified number of bits.
(Inherited from NetBuffer.)
Public methodWriteRangedInteger(Int32, Int32, Int32)
Writes an integer with the least amount of bits need for the specified range Returns number of bits written
(Inherited from NetBuffer.)
Public methodWriteRangedInteger(Int64, Int64, Int64)
Writes an integer with the least amount of bits need for the specified range Returns number of bits written
(Inherited from NetBuffer.)
Public methodWriteRangedSingle
Compress a float within a specified range using a certain number of bits
(Inherited from NetBuffer.)
Public methodWriteSignedSingle
Compress (lossy) a float in the range -1..1 using numberOfBits bits
(Inherited from NetBuffer.)
Public methodWriteTime(Boolean)
Writes the current local time to a message; readable (and convertable to local time) by the remote host using ReadTime()
(Inherited from NetBuffer.)
Public methodWriteTime(Double, Boolean)
Writes a local timestamp to a message; readable (and convertable to local time) by the remote host using ReadTime()
(Inherited from NetBuffer.)
Public methodWriteUnitSingle
Compress (lossy) a float in the range 0..1 using numberOfBits bits
(Inherited from NetBuffer.)
Public methodWriteVariableInt32
Write Base128 encoded variable sized signed integer of up to 32 bits
(Inherited from NetBuffer.)
Public methodWriteVariableInt64
Write Base128 encoded variable sized signed integer of up to 64 bits
(Inherited from NetBuffer.)
Public methodWriteVariableUInt32
Write Base128 encoded variable sized unsigned integer of up to 32 bits
(Inherited from NetBuffer.)
Public methodWriteVariableUInt64
Write Base128 encoded variable sized unsigned integer of up to 64 bits
(Inherited from NetBuffer.)
Public methodZero
Writes a number of zeroed bytes
(Inherited from NetBuffer.)
Top
Extension Methods
See Also