Net |
public sealed class NetPacketReader : NetDataReader
The NetPacketReader type exposes the following members.
| Name | Description | |
|---|---|---|
| AvailableBytes |
Gets the number of Bytes remaining to be read.
(Inherited from NetDataReader) | |
| EndOfData |
Gets a value indicating whether the Position has reached the end of the data.
(Inherited from NetDataReader) | |
| IsNull |
Gets a value indicating whether the internal data buffer is .
(Inherited from NetDataReader) | |
| Position |
Gets the current read position within the buffer.
(Inherited from NetDataReader) | |
| RawData |
Gets the internal Byte array containing the raw network data.
(Inherited from NetDataReader) | |
| RawDataSize |
Gets the total size of the RawData buffer.
(Inherited from NetDataReader) | |
| UserDataOffset |
Gets the starting offset of the user payload within the RawData.
(Inherited from NetDataReader) | |
| UserDataSize |
Gets the size of the user payload excluding the initial UserDataOffset.
(Inherited from NetDataReader) |
| Name | Description | |
|---|---|---|
| Clear | Clears the reader state and releases the reference to the internal buffer. (Inherited from NetDataReader) | |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) | |
| Get(Boolean) | Reads a Boolean and assigns it to result. (Inherited from NetDataReader) | |
| Get(Byte) | Reads a Byte and assigns it to result. (Inherited from NetDataReader) | |
| Get(Char) | Reads a Char and assigns it to result. (Inherited from NetDataReader) | |
| Get(Double) | Reads a Double and assigns it to result. (Inherited from NetDataReader) | |
| Get(Guid) | Reads a Guid and assigns it to result. (Inherited from NetDataReader) | |
| Get(Int16) | Reads a Int16 and assigns it to result. (Inherited from NetDataReader) | |
| Get(Int32) | Reads an Int32 and assigns it to result. (Inherited from NetDataReader) | |
| Get(Int64) | Reads a Int64 and assigns it to result. (Inherited from NetDataReader) | |
| Get(IPEndPoint) |
Deserializes an IPEndPoint and assigns it to the result parameter.
(Inherited from NetDataReader) | |
| Get(SByte) | Reads an SByte and assigns it to result. (Inherited from NetDataReader) | |
| Get(Single) | Reads a Single and assigns it to result. (Inherited from NetDataReader) | |
| Get(String) | Reads a String and assigns it to result. (Inherited from NetDataReader) | |
| Get(UInt16) | Reads a UInt16 and assigns it to result. (Inherited from NetDataReader) | |
| Get(UInt32) | Reads a UInt32 and assigns it to result. (Inherited from NetDataReader) | |
| Get(UInt64) | Reads a UInt64 and assigns it to result. (Inherited from NetDataReader) | |
| Get(String, Int32) | Reads a String with a length limit and assigns it to result. (Inherited from NetDataReader) | |
| GetT |
Deserializes a struct that implements INetSerializable.
(Inherited from NetDataReader) | |
| GetT(FuncT) |
Deserializes a class that implements INetSerializable using a provided constructor.
(Inherited from NetDataReader) | |
| GetT(T) |
Deserializes a struct that implements INetSerializable.
(Inherited from NetDataReader) | |
| GetT(T, FuncT) |
Deserializes a class that implements INetSerializable using a provided constructor.
(Inherited from NetDataReader) | |
| GetArrayT |
Reads an array of objects implementing INetSerializable.
(Inherited from NetDataReader) | |
| GetArrayT(FuncT) |
Reads an array of objects implementing INetSerializable using a specific constructor.
(Inherited from NetDataReader) | |
| GetArrayT(UInt16) |
Reads an array of values by performing a direct memory copy.
(Inherited from NetDataReader) | |
| GetBool | Reads a Boolean value from the current position. (Inherited from NetDataReader) | |
| GetBoolArray | Reads an array of Boolean values. (Inherited from NetDataReader) | |
| GetByte | Reads the next Byte from the buffer. (Inherited from NetDataReader) | |
| GetBytes(Byte, Int32) |
Copies a specified number of Bytes into a destination array starting at index 0.
(Inherited from NetDataReader) | |
| GetBytes(Byte, Int32, Int32) |
Copies a specified number of Bytes into a destination array at a specific offset.
(Inherited from NetDataReader) | |
| GetBytesSegment |
Gets an ArraySegmentT of Bytes from the current position.
(Inherited from NetDataReader) | |
| GetBytesWithLength |
Reads a Byte array prefixed with its UInt16 length.
(Inherited from NetDataReader) | |
| GetChar | Reads a Char value as a 2-byte UInt16. (Inherited from NetDataReader) | |
| GetDouble | Reads a Double value using unmanaged memory access. (Inherited from NetDataReader) | |
| GetDoubleArray | Reads an array of Double values. (Inherited from NetDataReader) | |
| GetEnumT |
Reads an enum value of type T from the internal data buffer at the current position. Advances the position by the size of T. (Inherited from NetDataReader) | |
| GetFloat | Reads a Single value using unmanaged memory access. (Inherited from NetDataReader) | |
| GetFloatArray | Reads an array of Single values. (Inherited from NetDataReader) | |
| GetGuid |
Reads a 16-byte Guid.
(Inherited from NetDataReader) | |
| GetHashCode | Serves as the default hash function. (Inherited from Object) | |
| GetInt | Reads an Int32 value using unmanaged memory access. (Inherited from NetDataReader) | |
| GetIntArray | Reads an array of Int32 values. (Inherited from NetDataReader) | |
| GetIPEndPoint |
Reads an IPEndPoint from the current Position.
(Inherited from NetDataReader) | |
| GetLargeString |
Reads a String prefixed with a 4-byte Int32 length header.
(Inherited from NetDataReader) | |
| GetLong | Reads a Int64 value using unmanaged memory access. (Inherited from NetDataReader) | |
| GetLongArray | Reads an array of Int64 values. (Inherited from NetDataReader) | |
| GetNullableUnmanagedT |
Reads a nullable value of type T from the internal byte buffer at the current position,
first reading a Boolean indicating whether the value is present,
and then reading the value itself if it exists. Advances the position by 1 byte for the presence flag plus the size of T if the value is present. (Inherited from NetDataReader) | |
| GetRemainingBytes |
Reads all remaining Bytes and returns them as a new array.
(Inherited from NetDataReader) | |
| GetRemainingBytesMemory |
Returns a ReadOnlyMemoryT of Bytes containing all remaining data.
(Inherited from NetDataReader) | |
| GetRemainingBytesSegment |
Gets an ArraySegmentT containing all remaining Bytes.
(Inherited from NetDataReader) | |
| GetRemainingBytesSpan |
Returns a ReadOnlySpanT of Bytes containing all remaining data.
(Inherited from NetDataReader) | |
| GetSByte | Reads the next SByte from the buffer. (Inherited from NetDataReader) | |
| GetSBytesWithLength |
Reads an SByte array prefixed with its UInt16 length.
(Inherited from NetDataReader) | |
| GetShort | Reads a Int16 value using unmanaged memory access. (Inherited from NetDataReader) | |
| GetShortArray | Reads an array of Int16 values. (Inherited from NetDataReader) | |
| GetString |
Reads a String from the current position.
(Inherited from NetDataReader) | |
| GetString(Int32) |
Reads a String with a maximum character limit.
(Inherited from NetDataReader) | |
| GetStringArray |
Reads an array of String values.
(Inherited from NetDataReader) | |
| GetStringArray(Int32) |
Reads an array of String values with a maximum character limit per element.
(Inherited from NetDataReader) | |
| GetType | Gets the Type of the current instance. (Inherited from Object) | |
| GetUInt | Reads a UInt32 value using unmanaged memory access. (Inherited from NetDataReader) | |
| GetUIntArray | Reads an array of UInt32 values. (Inherited from NetDataReader) | |
| GetULong | Reads a UInt64 value using unmanaged memory access. (Inherited from NetDataReader) | |
| GetULongArray | Reads an array of UInt64 values. (Inherited from NetDataReader) | |
| GetUnmanagedT |
Reads a value of type T from the internal byte buffer at the current position,
advancing the position by the size of T.
(Inherited from NetDataReader) | |
| GetUnmanagedArrayT |
Reads an array of unmanaged values prefixed by a UInt16 length.
(Inherited from NetDataReader) | |
| GetUShort | Reads a UInt16 value using unmanaged memory access. (Inherited from NetDataReader) | |
| GetUShortArray | Reads an array of UInt16 values. (Inherited from NetDataReader) | |
| PeekBool | Reads the Boolean at the current position without advancing the Position. (Inherited from NetDataReader) | |
| PeekByte | Reads the Byte at the current position without advancing the Position. (Inherited from NetDataReader) | |
| PeekChar | Reads the Char at the current position without advancing the Position. (Inherited from NetDataReader) | |
| PeekDouble | Reads the Double at the current position without advancing the Position. (Inherited from NetDataReader) | |
| PeekFloat | Reads the Single at the current position without advancing the Position. (Inherited from NetDataReader) | |
| PeekInt | Reads the Int32 at the current position without advancing the Position. (Inherited from NetDataReader) | |
| PeekLong | Reads the Int64 at the current position without advancing the Position. (Inherited from NetDataReader) | |
| PeekRemainingBytes |
Reads all remaining Bytes and returns them as a new array without advancing the reader _position.
(Inherited from NetDataReader) | |
| PeekRemainingBytesMemory |
Returns a ReadOnlyMemoryT of Bytes containing all remaining data without advancing the reader _position.
(Inherited from NetDataReader) | |
| PeekRemainingBytesSpan |
Returns a ReadOnlySpanT of Bytes containing all remaining data without advancing the reader _position.
(Inherited from NetDataReader) | |
| PeekSByte | Reads the SByte at the current position without advancing the Position. (Inherited from NetDataReader) | |
| PeekShort | Reads the Int16 at the current position without advancing the Position. (Inherited from NetDataReader) | |
| PeekString |
Reads a String without advancing the Position.
(Inherited from NetDataReader) | |
| PeekString(Int32) |
Reads a String with a character limit without advancing the Position.
(Inherited from NetDataReader) | |
| PeekUInt | Reads the UInt32 at the current position without advancing the Position. (Inherited from NetDataReader) | |
| PeekULong | Reads the UInt64 at the current position without advancing the Position. (Inherited from NetDataReader) | |
| PeekUnmanagedT |
Reads an unmanaged value of type T at the current position without advancing the Position.
(Inherited from NetDataReader) | |
| PeekUShort | Reads the UInt16 at the current position without advancing the Position. (Inherited from NetDataReader) | |
| Recycle | ||
| SetPosition |
Sets the current read Position to a specific index.
(Inherited from NetDataReader) | |
| SetSource(Byte) |
Reinitializes the reader using a Byte array.
(Inherited from NetDataReader) | |
| SetSource(NetDataWriter) |
Reinitializes the reader using data from a NetDataWriter.
(Inherited from NetDataReader) | |
| SetSource(Byte, Int32, Int32) |
Reinitializes the reader using a segment of a Byte array.
(Inherited from NetDataReader) | |
| SkipBytes |
Advances the Position by the specified count.
(Inherited from NetDataReader) | |
| ToString | Returns a string that represents the current object. (Inherited from Object) | |
| TryGetBool | Attempts to read a Boolean without throwing an exception. (Inherited from NetDataReader) | |
| TryGetByte | Attempts to read a Byte without throwing an exception. (Inherited from NetDataReader) | |
| TryGetBytesWithLength | Attempts to read a Byte array with a length header without throwing an exception. (Inherited from NetDataReader) | |
| TryGetChar | Attempts to read a Char without throwing an exception. (Inherited from NetDataReader) | |
| TryGetDouble | Attempts to read a Double without throwing an exception. (Inherited from NetDataReader) | |
| TryGetFloat | Attempts to read a Single without throwing an exception. (Inherited from NetDataReader) | |
| TryGetInt | Attempts to read an Int32 without throwing an exception. (Inherited from NetDataReader) | |
| TryGetLong | Attempts to read a Int64 without throwing an exception. (Inherited from NetDataReader) | |
| TryGetSByte | Attempts to read an SByte without throwing an exception. (Inherited from NetDataReader) | |
| TryGetShort | Attempts to read a Int16 without throwing an exception. (Inherited from NetDataReader) | |
| TryGetString | Attempts to read a String without throwing an exception. (Inherited from NetDataReader) | |
| TryGetStringArray | Attempts to read a String array without throwing an exception. (Inherited from NetDataReader) | |
| TryGetUInt | Attempts to read a UInt32 without throwing an exception. (Inherited from NetDataReader) | |
| TryGetULong | Attempts to read a UInt64 without throwing an exception. (Inherited from NetDataReader) | |
| TryGetUnmanagedT |
Attempts to read a value of type T from the internal byte buffer at the current position,
advancing the position by the size of T if successful.
(Inherited from NetDataReader) | |
| TryGetUShort | Attempts to read a UInt16 without throwing an exception. (Inherited from NetDataReader) |
| Name | Description | |
|---|---|---|
| MethodInvoke |
Calls the object method by name.
(Defined by ObjectEx) | |
| PropertyGet |
Gets the value of the object property by name.
(Defined by ObjectEx) | |
| PropertyGetT |
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) |