NetIncomingMessage Class |
Namespace: Internal.Lidgren.Network
public sealed class NetIncomingMessage : NetBuffer
The NetIncomingMessage type exposes the following members.
| Name | Description | |
|---|---|---|
| Data |
Gets or sets the internal data buffer
(Inherited from NetBuffer.) | |
| DeliveryMethod |
Gets the delivery method this message was sent with (if user data)
| |
| LengthBits |
Gets or sets the length of the used portion of the buffer in bits
(Inherited from NetBuffer.) | |
| LengthBytes |
Gets or sets the length of the used portion of the buffer in bytes
(Inherited from NetBuffer.) | |
| MessageType |
Gets the type of this incoming message
| |
| Position |
Gets or sets the read position in the buffer, in bits (not bytes)
(Inherited from NetBuffer.) | |
| PositionInBytes |
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.) | |
| ReceiveTime |
What local time the message was received from the network
| |
| SenderConnection |
NetConnection of sender, if any
| |
| SenderEndPoint |
endpoint of sender, if any
| |
| SequenceChannel |
Gets the sequence channel this message was sent with (if user data)
|
| Name | Description | |
|---|---|---|
| EnsureBufferSize |
Ensures the buffer can hold this number of bits
(Inherited from NetBuffer.) | |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
| GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| PeekBoolean |
Reads a 1-bit Boolean without advancing the read pointer
(Inherited from NetBuffer.) | |
| PeekByte |
Reads a Byte without advancing the read pointer
(Inherited from NetBuffer.) | |
| PeekByte(Int32) |
Reads the specified number of bits into a Byte without advancing the read pointer
(Inherited from NetBuffer.) | |
| PeekBytes(Int32) |
Reads the specified number of bytes without advancing the read pointer
(Inherited from NetBuffer.) | |
| PeekBytes(Void) | (Inherited from NetBuffer.) | |
| PeekBytes(Byte, Int32, Int32) |
Reads the specified number of bytes without advancing the read pointer
(Inherited from NetBuffer.) | |
| PeekDataBuffer |
Gets the internal data buffer
(Inherited from NetBuffer.) | |
| PeekDouble |
Reads a 64-bit Double without advancing the read pointer
(Inherited from NetBuffer.) | |
| PeekFloat |
Reads a 32-bit Single without advancing the read pointer
(Inherited from NetBuffer.) | |
| PeekHalf |
Writes a 16 bit floating point value
(Inherited from NetBuffer.) | |
| PeekInt16 |
Reads an Int16 without advancing the read pointer
(Inherited from NetBuffer.) | |
| PeekInt32 |
Reads an Int32 without advancing the read pointer
(Inherited from NetBuffer.) | |
| PeekInt32(Int32) |
Reads the specified number of bits into an Int32 without advancing the read pointer
(Inherited from NetBuffer.) | |
| PeekInt64 |
Reads an Int64 without advancing the read pointer
(Inherited from NetBuffer.) | |
| PeekInt64(Int32) |
Reads the specified number of bits into an Int64 without advancing the read pointer
(Inherited from NetBuffer.) | |
| PeekSByte |
Reads an SByte without advancing the read pointer
(Inherited from NetBuffer.) | |
| PeekSingle |
Reads a 32-bit Single without advancing the read pointer
(Inherited from NetBuffer.) | |
| PeekString |
Reads a string without advancing the read pointer
(Inherited from NetBuffer.) | |
| PeekStringSize |
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.) | |
| PeekUInt16 |
Reads a UInt16 without advancing the read pointer
(Inherited from NetBuffer.) | |
| PeekUInt32 |
Reads a UInt32 without advancing the read pointer
(Inherited from NetBuffer.) | |
| PeekUInt32(Int32) |
Reads the specified number of bits into a UInt32 without advancing the read pointer
(Inherited from NetBuffer.) | |
| PeekUInt64 |
Reads a UInt64 without advancing the read pointer
(Inherited from NetBuffer.) | |
| PeekUInt64(Int32) |
Reads the specified number of bits into an UInt64 without advancing the read pointer
(Inherited from NetBuffer.) | |
| ReadBits(Span, Void) | (Inherited from NetBuffer.) | |
| ReadBits(Byte, Int32, Int32) |
Reads the specified number of bits into a preallocated array
(Inherited from NetBuffer.) | |
| ReadBoolean |
Reads a boolean value (stored as a single bit) written using Write(bool)
(Inherited from NetBuffer.) | |
| ReadByte |
Reads a byte
(Inherited from NetBuffer.) | |
| ReadByte(Byte) |
Reads a byte and returns true or false for success
(Inherited from NetBuffer.) | |
| ReadByte(Int32) |
Reads 1 to 8 bits into a byte
(Inherited from NetBuffer.) | |
| ReadBytes(Int32) |
Reads the specified number of bytes
(Inherited from NetBuffer.) | |
| ReadBytes(Void) | (Inherited from NetBuffer.) | |
| ReadBytes(Int32, Byte) |
Reads the specified number of bytes and returns true for success
(Inherited from NetBuffer.) | |
| ReadBytes(Byte, Int32, Int32) |
Reads the specified number of bytes into a preallocated array
(Inherited from NetBuffer.) | |
| ReadDouble |
Reads a 64 bit floating point value written using Write(Double)
(Inherited from NetBuffer.) | |
| ReadFloat |
Reads a 32 bit floating point value written using Write(Single)
(Inherited from NetBuffer.) | |
| ReadHalf |
Reads a 16 bit floating point value written using Write(Half)
(Inherited from NetBuffer.) | |
| ReadInt16 |
Reads a 16 bit signed integer written using Write(Int16)
(Inherited from NetBuffer.) | |
| ReadInt32 |
Reads a 32 bit signed integer written using Write(Int32)
(Inherited from NetBuffer.) | |
| ReadInt32(Int32) |
Reads a signed integer stored in 1 to 32 bits, written using Write(Int32, Int32)
(Inherited from NetBuffer.) | |
| ReadInt32(Int32) |
Reads a 32 bit signed integer written using Write(Int32)
(Inherited from NetBuffer.) | |
| ReadInt64 |
Reads a 64 bit signed integer written using Write(Int64)
(Inherited from NetBuffer.) | |
| ReadInt64(Int32) |
Reads a signed integer stored in 1 to 64 bits, written using Write(Int64, Int32)
(Inherited from NetBuffer.) | |
| ReadIPEndPoint |
Reads a stored IPv4 endpoint description
(Inherited from NetBuffer.) | |
| ReadPadBits |
Pads data with enough bits to reach a full byte. Decreases cpu usage for subsequent byte writes.
(Inherited from NetBuffer.) | |
| ReadRangedInteger(Int32, Int32) |
Reads a 32 bit integer value written using WriteRangedInteger()
(Inherited from NetBuffer.) | |
| ReadRangedInteger(Int64, Int64) |
Reads a 64 bit integer value written using WriteRangedInteger() (64 version)
(Inherited from NetBuffer.) | |
| ReadRangedSingle |
Reads a 32 bit floating point value written using WriteRangedSingle()
(Inherited from NetBuffer.) | |
| ReadSByte |
Reads a signed byte
(Inherited from NetBuffer.) | |
| ReadSignedSingle |
Reads a 32 bit floating point value written using WriteSignedSingle()
(Inherited from NetBuffer.) | |
| ReadSingle |
Reads a 32 bit floating point value written using Write(Single)
(Inherited from NetBuffer.) | |
| ReadSingle(Single) |
Reads a 32 bit floating point value written using Write(Single)
(Inherited from NetBuffer.) | |
| ReadString |
Reads a string written using Write(string)
(Inherited from NetBuffer.) | |
| ReadString(String) |
Reads a string written using Write(string) and returns true for success
(Inherited from NetBuffer.) | |
| ReadTime(Boolean) |
Reads a value, in local time comparable to NetTime.Now, written using WriteTime()
Must have a connected sender
| |
| ReadTime(NetConnection, Boolean) |
Reads a value, in local time comparable to NetTime.Now, written using WriteTime() for the connection supplied
(Inherited from NetBuffer.) | |
| ReadUInt16 |
Reads a 16 bit unsigned integer written using Write(UInt16)
(Inherited from NetBuffer.) | |
| ReadUInt32 |
Reads an 32 bit unsigned integer written using Write(UInt32)
(Inherited from NetBuffer.) | |
| ReadUInt32(Int32) |
Reads an unsigned integer stored in 1 to 32 bits, written using Write(UInt32, Int32)
(Inherited from NetBuffer.) | |
| ReadUInt32(UInt32) |
Reads an 32 bit unsigned integer written using Write(UInt32) and returns true for success
(Inherited from NetBuffer.) | |
| ReadUInt64 |
Reads a 64 bit unsigned integer written using Write(UInt64)
(Inherited from NetBuffer.) | |
| ReadUInt64(Int32) |
Reads an unsigned integer stored in 1 to 64 bits, written using Write(UInt64, Int32)
(Inherited from NetBuffer.) | |
| ReadUnitSingle |
Reads a 32 bit floating point value written using WriteUnitSingle()
(Inherited from NetBuffer.) | |
| ReadVariableInt32 |
Reads a variable sized Int32 written using WriteVariableInt32()
(Inherited from NetBuffer.) | |
| ReadVariableInt64 |
Reads a variable sized Int64 written using WriteVariableInt64()
(Inherited from NetBuffer.) | |
| ReadVariableUInt32 |
Reads a variable sized UInt32 written using WriteVariableUInt32()
(Inherited from NetBuffer.) | |
| ReadVariableUInt32(UInt32) |
Reads a variable sized UInt32 written using WriteVariableUInt32() and returns true for success
(Inherited from NetBuffer.) | |
| ReadVariableUInt32WithBytesReaded |
Reads a variable sized UInt32 written using WriteVariableUInt32()
(Inherited from NetBuffer.) | |
| ReadVariableUInt64 |
Reads a variable sized UInt32 written using WriteVariableInt64()
(Inherited from NetBuffer.) | |
| SkipPadBits |
Pads data with enough bits to reach a full byte. Decreases cpu usage for subsequent byte writes.
(Inherited from NetBuffer.) | |
| SkipPadBits(Int32) |
Pads data with the specified number of bits.
(Inherited from NetBuffer.) | |
| ToString |
Returns a string that represents this object
(Overrides ObjectToString.) | |
| TryReadBytes | (Inherited from NetBuffer.) | |
| Write(Boolean) |
Writes a boolean value using 1 bit
(Inherited from NetBuffer.) | |
| Write(Byte) |
Write a byte
(Inherited from NetBuffer.) | |
| Write(Byte) |
Writes all bytes in an array
(Inherited from NetBuffer.) | |
| Write(Double) |
Writes a 64 bit floating point value
(Inherited from NetBuffer.) | |
| Write(Half) |
Writes a 16 bit floating point value
(Inherited from NetBuffer.) | |
| Write(Int16) |
Writes a signed 16 bit integer
(Inherited from NetBuffer.) | |
| Write(Int32) |
Writes a 32 bit signed integer
(Inherited from NetBuffer.) | |
| Write(Int64) |
Writes a 64 bit signed integer
(Inherited from NetBuffer.) | |
| Write(IPEndPoint) |
Writes an endpoint description
(Inherited from NetBuffer.) | |
| Write(ReadOnlySpan) | (Inherited from NetBuffer.) | |
| Write(SByte) |
Writes a signed byte
(Inherited from NetBuffer.) | |
| Write(Single) |
Writes a 32 bit floating point value
(Inherited from NetBuffer.) | |
| Write(String) |
Write a string
(Inherited from NetBuffer.) | |
| Write(UInt16) |
Writes an unsigned 16 bit integer
(Inherited from NetBuffer.) | |
| Write(UInt32) |
Writes a 32 bit unsigned integer
(Inherited from NetBuffer.) | |
| Write(UInt64) |
Writes a 64 bit unsigned integer
(Inherited from NetBuffer.) | |
| Write(NetBuffer) |
Append all the bits of message to this message
(Inherited from NetBuffer.) | |
| Write(Byte, Int32) |
Writes 1 to 8 bits of a byte
(Inherited from NetBuffer.) | |
| Write(Int32, Int32) |
Writes a signed integer using 1 to 32 bits
(Inherited from NetBuffer.) | |
| Write(Int64, Int32) |
Writes a signed integer using 1 to 64 bits
(Inherited from NetBuffer.) | |
| Write(UInt16, Int32) |
Writes an unsigned integer using 1 to 16 bits
(Inherited from NetBuffer.) | |
| Write(UInt32, Int32) |
Writes a 32 bit signed integer
(Inherited from NetBuffer.) | |
| Write(UInt64, Int32) |
Writes an unsigned integer using 1 to 64 bits
(Inherited from NetBuffer.) | |
| Write(Byte, Int32, Int32) |
Writes the specified number of bytes from an array
(Inherited from NetBuffer.) | |
| WriteAt(Int32, Byte) |
Writes a byte at a given offset in the buffer
(Inherited from NetBuffer.) | |
| WriteAt(Int32, Int16) |
Writes a 16 bit signed integer at a given offset in the buffer
(Inherited from NetBuffer.) | |
| WriteAt(Int32, Int32) |
Writes a 32 bit signed integer at a given offset in the buffer
(Inherited from NetBuffer.) | |
| WriteAt(Int32, UInt16) |
Writes a 16 bit unsigned integer at a given offset in the buffer
(Inherited from NetBuffer.) | |
| WriteAt(Int32, UInt32) |
Writes a 32 bit unsigned integer at a given offset in the buffer
(Inherited from NetBuffer.) | |
| WriteAt(Int32, UInt64) |
Writes a 64 bit unsigned integer at a given offset in the buffer
(Inherited from NetBuffer.) | |
| WritePadBits |
Pads data with enough bits to reach a full byte. Decreases cpu usage for subsequent byte writes.
(Inherited from NetBuffer.) | |
| WritePadBits(Int32) |
Pads data with the specified number of bits.
(Inherited from NetBuffer.) | |
| WriteRangedInteger(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.) | |
| WriteRangedInteger(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.) | |
| WriteRangedSingle |
Compress a float within a specified range using a certain number of bits
(Inherited from NetBuffer.) | |
| WriteSignedSingle |
Compress (lossy) a float in the range -1..1 using numberOfBits bits
(Inherited from NetBuffer.) | |
| WriteTime(Boolean) |
Writes the current local time to a message; readable (and convertable to local time) by the remote host using ReadTime()
(Inherited from NetBuffer.) | |
| WriteTime(Double, Boolean) |
Writes a local timestamp to a message; readable (and convertable to local time) by the remote host using ReadTime()
(Inherited from NetBuffer.) | |
| WriteUnitSingle |
Compress (lossy) a float in the range 0..1 using numberOfBits bits
(Inherited from NetBuffer.) | |
| WriteVariableInt32 |
Write Base128 encoded variable sized signed integer of up to 32 bits
(Inherited from NetBuffer.) | |
| WriteVariableInt64 |
Write Base128 encoded variable sized signed integer of up to 64 bits
(Inherited from NetBuffer.) | |
| WriteVariableUInt32 |
Write Base128 encoded variable sized unsigned integer of up to 32 bits
(Inherited from NetBuffer.) | |
| WriteVariableUInt64 |
Write Base128 encoded variable sized unsigned integer of up to 64 bits
(Inherited from NetBuffer.) | |
| Zero |
Writes a number of zeroed bytes
(Inherited from NetBuffer.) |
| Name | Description | |
|---|---|---|
| MethodInvoke |
Calls the object method by name.
(Defined by ObjectEx.) | |
| PropertyGet(String, Object, Boolean) | Overloaded.
Gets the value of the object property by name.
(Defined by ObjectEx.) | |
| PropertyGetT(String, Object, Boolean) | Overloaded.
Gets the value of the object property by name.
(Defined by ObjectEx.) | |
| PropertySet |
Sets the value of the object property by name.
(Defined by ObjectEx.) |