NetBuffer Methods
From Lidgren.Network
The NetBuffer type exposes the following members.
Methods
| Name | Description | |
|---|---|---|
| EnsureBufferSize |
Ensures the buffer can hold this number of bits
| |
| Equals | (Inherited from Object.) | |
| Finalize |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.) | |
| GetHashCode |
Serves as a hash function for a particular type.
(Inherited from Object.) | |
| GetType |
Gets the Type of the current instance.
(Inherited from Object.) | |
| MemberwiseClone |
Creates a shallow copy of the current Object.
(Inherited from Object.) | |
| PeekBoolean |
Reads a 1-bit Boolean without advancing the read pointer
| |
| PeekByte()()()() |
Reads a Byte without advancing the read pointer
| |
| PeekByte(Int32) |
Reads the specified number of bits into a Byte without advancing the read pointer
| |
| PeekBytes(Int32) |
Reads the specified number of bytes without advancing the read pointer
| |
| PeekBytes(array<Byte>[]()[][], Int32, Int32) |
Reads the specified number of bytes without advancing the read pointer
| |
| PeekDataBuffer |
Gets the internal data buffer
| |
| PeekDouble |
Reads a 64-bit Double without advancing the read pointer
| |
| PeekFloat |
Reads a 32-bit Single without advancing the read pointer
| |
| PeekInt16 |
Reads an Int16 without advancing the read pointer
| |
| PeekInt32()()()() |
Reads an Int32 without advancing the read pointer
| |
| PeekInt32(Int32) |
Reads the specified number of bits into an Int32 without advancing the read pointer
| |
| PeekInt64()()()() |
Reads an Int64 without advancing the read pointer
| |
| PeekInt64(Int32) |
Reads the specified number of bits into an Int64 without advancing the read pointer
| |
| PeekSByte |
Reads an SByte without advancing the read pointer
| |
| PeekSingle |
Reads a 32-bit Single without advancing the read pointer
| |
| PeekString |
Reads a string without advancing the read pointer
| |
| PeekUInt16 |
Reads a UInt16 without advancing the read pointer
| |
| PeekUInt32()()()() |
Reads a UInt32 without advancing the read pointer
| |
| PeekUInt32(Int32) |
Reads the specified number of bits into a UInt32 without advancing the read pointer
| |
| PeekUInt64()()()() |
Reads a UInt64 without advancing the read pointer
| |
| PeekUInt64(Int32) |
Reads the specified number of bits into an UInt64 without advancing the read pointer
| |
| ReadAllFields(Object) |
Reads all public and private declared instance fields of the object in alphabetical order using reflection
| |
| ReadAllFields(Object, BindingFlags) |
Reads all fields with the specified binding of the object in alphabetical order using reflection
| |
| ReadAllProperties(Object) |
Reads all public and private declared instance fields of the object in alphabetical order using reflection
| |
| ReadAllProperties(Object, BindingFlags) |
Reads all fields with the specified binding of the object in alphabetical order using reflection
| |
| ReadBits |
Reads the specified number of bits into a preallocated array
| |
| ReadBoolean |
Reads a boolean value (stored as a single bit) written using Write(bool)
| |
| ReadByte()()()() |
Reads a byte
| |
| ReadByte(Byte%) |
Reads a byte and returns true or false for success
| |
| ReadByte(Int32) |
Reads 1 to 8 bits into a byte
| |
| ReadBytes(Int32) |
Reads the specified number of bytes
| |
| ReadBytes(Int32, array<Byte>[]()[][]%) |
Reads the specified number of bytes and returns true for success
| |
| ReadBytes(array<Byte>[]()[][], Int32, Int32) |
Reads the specified number of bytes into a preallocated array
| |
| ReadDouble |
Reads a 64 bit floating point value written using Write(Double)
| |
| ReadFloat |
Reads a 32 bit floating point value written using Write(Single)
| |
| ReadInt16 |
Reads a 16 bit signed integer written using Write(Int16)
| |
| ReadInt32()()()() |
Reads a 32 bit signed integer written using Write(Int32)
| |
| ReadInt32(Int32) |
Reads a signed integer stored in 1 to 32 bits, written using Write(Int32, Int32)
| |
| ReadInt32(Int32%) |
Reads a 32 bit signed integer written using Write(Int32)
| |
| ReadInt64()()()() |
Reads a 64 bit signed integer written using Write(Int64)
| |
| ReadInt64(Int32) |
Reads a signed integer stored in 1 to 64 bits, written using Write(Int64, Int32)
| |
| ReadIPEndpoint |
Reads a stored IPv4 endpoint description
| |
| ReadPadBits |
Pads data with enough bits to reach a full byte. Decreases cpu usage for subsequent byte writes.
| |
| ReadRangedInteger |
Reads a 32 bit integer value written using WriteRangedInteger()
| |
| ReadRangedSingle |
Reads a 32 bit floating point value written using WriteRangedSingle()
| |
| ReadSByte |
Reads a signed byte
| |
| ReadSignedSingle |
Reads a 32 bit floating point value written using WriteSignedSingle()
| |
| ReadSingle()()()() |
Reads a 32 bit floating point value written using Write(Single)
| |
| ReadSingle(Single%) |
Reads a 32 bit floating point value written using Write(Single)
| |
| ReadString()()()() |
Reads a string written using Write(string)
| |
| ReadString(String%) |
Reads a string written using Write(string) and returns true for success
| |
| ReadTime |
Reads a value, in local time comparable to NetTime.Now, written using WriteTime() for the connection supplied
| |
| ReadUInt16 |
Reads a 16 bit unsigned integer written using Write(UInt16)
| |
| ReadUInt32()()()() |
Reads an 32 bit unsigned integer written using Write(UInt32)
| |
| ReadUInt32(Int32) |
Reads an unsigned integer stored in 1 to 32 bits, written using Write(UInt32, Int32)
| |
| ReadUInt32(UInt32%) |
Reads an 32 bit unsigned integer written using Write(UInt32) and returns true for success
| |
| ReadUInt64()()()() |
Reads a 64 bit unsigned integer written using Write(UInt64)
| |
| ReadUInt64(Int32) |
Reads an unsigned integer stored in 1 to 64 bits, written using Write(UInt64, Int32)
| |
| ReadUnitSingle |
Reads a 32 bit floating point value written using WriteUnitSingle()
| |
| ReadVariableInt32 |
Reads a variable sized Int32 written using WriteVariableInt32()
| |
| ReadVariableInt64 |
Reads a variable sized Int64 written using WriteVariableInt64()
| |
| ReadVariableUInt32()()()() |
Reads a variable sized UInt32 written using WriteVariableUInt32()
| |
| ReadVariableUInt32(UInt32%) |
Reads a variable sized UInt32 written using WriteVariableUInt32() and returns true for success
| |
| ReadVariableUInt64 |
Reads a variable sized UInt32 written using WriteVariableInt64()
| |
| SkipPadBits()()()() |
Pads data with enough bits to reach a full byte. Decreases cpu usage for subsequent byte writes.
| |
| SkipPadBits(Int32) |
Pads data with the specified number of bits.
| |
| ToString | (Inherited from Object.) | |
| Write(Boolean) |
Writes a boolean value using 1 bit
| |
| Write(Byte) |
Write a byte
| |
| Write(array<Byte>[]()[][]) |
Writes all bytes in an array
| |
| Write(Double) |
Writes a 64 bit floating point value
| |
| Write(Int16) |
Writes a signed 16 bit integer
| |
| Write(Int32) |
Writes a 32 bit signed integer
| |
| Write(Int64) |
Writes a 64 bit signed integer
| |
| Write(IPEndPoint) |
Writes an endpoint description
| |
| Write(SByte) |
Writes a signed byte
| |
| Write(Single) |
Writes a 32 bit floating point value
| |
| Write(String) |
Write a string
| |
| Write(UInt16) |
Writes an unsigned 16 bit integer
| |
| Write(UInt32) |
Writes a 32 bit unsigned integer
| |
| Write(UInt64) |
Writes a 64 bit unsigned integer
| |
| Write(NetIncomingMessage) |
Append all the bits of message to this message
| |
| Write(NetOutgoingMessage) |
Append all the bits of message to this message
| |
| Write(Byte, Int32) |
Writes 1 to 8 bits of a byte
| |
| Write(Int32, Int32) |
Writes a signed integer using 1 to 32 bits
| |
| Write(Int64, Int32) |
Writes a signed integer using 1 to 64 bits
| |
| Write(UInt16, Int32) |
Writes an unsigned integer using 1 to 16 bits
| |
| Write(UInt32, Int32) |
Writes a 32 bit signed integer
| |
| Write(UInt64, Int32) |
Writes an unsigned integer using 1 to 64 bits
| |
| Write(array<Byte>[]()[][], Int32, Int32) |
Writes the specified number of bytes from an array
| |
| WriteAllFields(Object) |
Writes all public and private declared instance fields of the object in alphabetical order using reflection
| |
| WriteAllFields(Object, BindingFlags) |
Writes all fields with specified binding in alphabetical order using reflection
| |
| WriteAllProperties(Object) |
Writes all public and private declared instance properties of the object in alphabetical order using reflection
| |
| WriteAllProperties(Object, BindingFlags) |
Writes all properties with specified binding in alphabetical order using reflection
| |
| WritePadBits()()()() |
Pads data with enough bits to reach a full byte. Decreases cpu usage for subsequent byte writes.
| |
| WritePadBits(Int32) |
Pads data with the specified number of bits.
| |
| WriteRangedInteger |
Writes an integer with the least amount of bits need for the specified range
Returns number of bits written
| |
| WriteRangedSingle |
Compress a float within a specified range using a certain number of bits
| |
| WriteSignedSingle |
Compress (lossy) a float in the range -1..1 using numberOfBits bits
| |
| WriteTime(Boolean) |
Writes the current local time to a message; readable (and convertable to local time) by the remote host using ReadTime()
| |
| WriteTime(Double, Boolean) |
Writes a local timestamp to a message; readable (and convertable to local time) by the remote host using ReadTime()
| |
| WriteUnitSingle |
Compress (lossy) a float in the range 0..1 using numberOfBits bits
| |
| WriteVariableInt32 |
Write Base128 encoded variable sized signed integer of up to 32 bits
| |
| WriteVariableInt64 |
Write Base128 encoded variable sized signed integer of up to 64 bits
| |
| WriteVariableUInt32 |
Write Base128 encoded variable sized unsigned integer of up to 32 bits
| |
| WriteVariableUInt64 |
Write Base128 encoded variable sized unsigned integer of up to 64 bits
|