NetOutgoingMessage Members

Lidgren.Network

Collapse imageExpand ImageCopy imageCopyHover image

The NetOutgoingMessage type exposes the following members.

Methods

  NameDescription
Public methodEncrypt
Encrypt this message using the provided algorithm; no more writing can be done before sending it or the message will be corrupt!
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.)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(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(array<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 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 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 methodReadAllFields(Object)
Reads all public and private declared instance fields of the object in alphabetical order using reflection
(Inherited from NetBuffer.)
Public methodReadAllFields(Object, BindingFlags)
Reads all fields with the specified binding of the object in alphabetical order using reflection
(Inherited from NetBuffer.)
Public methodReadAllProperties(Object)
Reads all public and private declared instance fields of the object in alphabetical order using reflection
(Inherited from NetBuffer.)
Public methodReadAllProperties(Object, BindingFlags)
Reads all fields with the specified binding of the object in alphabetical order using reflection
(Inherited from NetBuffer.)
Public methodReadBits
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(Int32, array<Byte>[]()[][]%)
Reads the specified number of bytes and returns true for success
(Inherited from NetBuffer.)
Public methodReadBytes(array<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 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
Reads a 32 bit integer value written using WriteRangedInteger()
(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 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 Object..::..ToString()()()().)
Public methodWrite(Boolean)
Writes a boolean value using 1 bit
(Inherited from NetBuffer.)
Public methodWrite(Byte)
Write a byte
(Inherited from NetBuffer.)
Public methodWrite(array<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(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(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(NetIncomingMessage)
Append all the bits of message to this message
(Inherited from NetBuffer.)
Public methodWrite(NetOutgoingMessage)
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(array<Byte>[]()[][], Int32, Int32)
Writes the specified number of bytes from an array
(Inherited from NetBuffer.)
Public methodWriteAllFields(Object)
Writes all public and private declared instance fields of the object in alphabetical order using reflection
(Inherited from NetBuffer.)
Public methodWriteAllFields(Object, BindingFlags)
Writes all fields with specified binding in alphabetical order using reflection
(Inherited from NetBuffer.)
Public methodWriteAllProperties(Object)
Writes all public and private declared instance properties of the object in alphabetical order using reflection
(Inherited from NetBuffer.)
Public methodWriteAllProperties(Object, BindingFlags)
Writes all properties with specified binding in alphabetical order using reflection
(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
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.)

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.)

See Also