NetBuffer Methods |
The NetBuffer type exposes the following members.
Name | Description | |
---|---|---|
EnsureBufferSize |
Ensures the buffer can hold this number of bits
| |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (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(Void) | ||
PeekBytes(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
| |
PeekHalf |
Writes a 16 bit floating point value
| |
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
| |
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.
| |
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
| |
ReadBits(Span, Void) | ||
ReadBits(Byte, Int32, Int32) |
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(Void) | ||
ReadBytes(Int32, Byte) |
Reads the specified number of bytes and returns true for success
| |
ReadBytes(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)
| |
ReadHalf |
Reads a 16 bit floating point value written using Write(Half)
| |
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(Int32, Int32) |
Reads a 32 bit integer value written using WriteRangedInteger()
| |
ReadRangedInteger(Int64, Int64) |
Reads a 64 bit integer value written using WriteRangedInteger() (64 version)
| |
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
| |
ReadVariableUInt32WithBytesReaded |
Reads a variable sized UInt32 written using WriteVariableUInt32()
| |
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 | Returns a string that represents the current object. (Inherited from Object.) | |
TryReadBytes | ||
Write(Boolean) |
Writes a boolean value using 1 bit
| |
Write(Byte) |
Write a byte
| |
Write(Byte) |
Writes all bytes in an array
| |
Write(Double) |
Writes a 64 bit floating point value
| |
Write(Half) |
Writes a 16 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(ReadOnlySpan) | ||
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(NetBuffer) |
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(Byte, Int32, Int32) |
Writes the specified number of bytes from an array
| |
WriteAt(Int32, Byte) |
Writes a byte at a given offset in the buffer
| |
WriteAt(Int32, Int16) |
Writes a 16 bit signed integer at a given offset in the buffer
| |
WriteAt(Int32, Int32) |
Writes a 32 bit signed integer at a given offset in the buffer
| |
WriteAt(Int32, UInt16) |
Writes a 16 bit unsigned integer at a given offset in the buffer
| |
WriteAt(Int32, UInt32) |
Writes a 32 bit unsigned integer at a given offset in the buffer
| |
WriteAt(Int32, UInt64) |
Writes a 64 bit unsigned integer at a given offset in the buffer
| |
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(Int32, Int32, Int32) |
Writes an integer with the least amount of bits need for the specified range
Returns number of bits written
| |
WriteRangedInteger(Int64, Int64, Int64) |
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
| |
Zero |
Writes a number of zeroed bytes
|
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.) |