Click or drag to resize

NetPacketReader Methods

The NetPacketReader type exposes the following members.

Methods
 NameDescription
Public methodClearClears the reader state and releases the reference to the internal buffer.
(Inherited from NetDataReader)
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodGet(Boolean)Reads a Boolean and assigns it to result.
(Inherited from NetDataReader)
Public methodGet(Byte)Reads a Byte and assigns it to result.
(Inherited from NetDataReader)
Public methodGet(Char)Reads a Char and assigns it to result.
(Inherited from NetDataReader)
Public methodGet(Double)Reads a Double and assigns it to result.
(Inherited from NetDataReader)
Public methodGet(Guid)Reads a Guid and assigns it to result.
(Inherited from NetDataReader)
Public methodGet(Int16)Reads a Int16 and assigns it to result.
(Inherited from NetDataReader)
Public methodGet(Int32)Reads an Int32 and assigns it to result.
(Inherited from NetDataReader)
Public methodGet(Int64)Reads a Int64 and assigns it to result.
(Inherited from NetDataReader)
Public methodGet(IPEndPoint) Deserializes an IPEndPoint and assigns it to the result parameter.
(Inherited from NetDataReader)
Public methodGet(SByte)Reads an SByte and assigns it to result.
(Inherited from NetDataReader)
Public methodGet(Single)Reads a Single and assigns it to result.
(Inherited from NetDataReader)
Public methodGet(String)Reads a String and assigns it to result.
(Inherited from NetDataReader)
Public methodGet(UInt16)Reads a UInt16 and assigns it to result.
(Inherited from NetDataReader)
Public methodGet(UInt32)Reads a UInt32 and assigns it to result.
(Inherited from NetDataReader)
Public methodGet(UInt64)Reads a UInt64 and assigns it to result.
(Inherited from NetDataReader)
Public methodGet(String, Int32)Reads a String with a length limit and assigns it to result.
(Inherited from NetDataReader)
Public methodGetT Deserializes a struct that implements INetSerializable.
(Inherited from NetDataReader)
Public methodGetT(FuncT) Deserializes a class that implements INetSerializable using a provided constructor.
(Inherited from NetDataReader)
Public methodGetT(T) Deserializes a struct that implements INetSerializable.
(Inherited from NetDataReader)
Public methodGetT(T, FuncT) Deserializes a class that implements INetSerializable using a provided constructor.
(Inherited from NetDataReader)
Public methodGetArrayT Reads an array of objects implementing INetSerializable.
(Inherited from NetDataReader)
Public methodGetArrayT(FuncT) Reads an array of objects implementing INetSerializable using a specific constructor.
(Inherited from NetDataReader)
Public methodGetArrayT(UInt16) Reads an array of values by performing a direct memory copy.
(Inherited from NetDataReader)
Public methodGetBoolReads a Boolean value from the current position.
(Inherited from NetDataReader)
Public methodGetBoolArrayReads an array of Boolean values.
(Inherited from NetDataReader)
Public methodGetByteReads the next Byte from the buffer.
(Inherited from NetDataReader)
Public methodGetBytes(Byte, Int32) Copies a specified number of Bytes into a destination array starting at index 0.
(Inherited from NetDataReader)
Public methodGetBytes(Byte, Int32, Int32) Copies a specified number of Bytes into a destination array at a specific offset.
(Inherited from NetDataReader)
Public methodGetBytesSegment Gets an ArraySegmentT of Bytes from the current position.
(Inherited from NetDataReader)
Public methodGetBytesWithLength Reads a Byte array prefixed with its UInt16 length.
(Inherited from NetDataReader)
Public methodGetCharReads a Char value as a 2-byte UInt16.
(Inherited from NetDataReader)
Public methodGetDoubleReads a Double value using unmanaged memory access.
(Inherited from NetDataReader)
Public methodGetDoubleArrayReads an array of Double values.
(Inherited from NetDataReader)
Public methodGetEnumT 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)
Public methodGetFloatReads a Single value using unmanaged memory access.
(Inherited from NetDataReader)
Public methodGetFloatArrayReads an array of Single values.
(Inherited from NetDataReader)
Public methodGetGuid Reads a 16-byte Guid.
(Inherited from NetDataReader)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetIntReads an Int32 value using unmanaged memory access.
(Inherited from NetDataReader)
Public methodGetIntArrayReads an array of Int32 values.
(Inherited from NetDataReader)
Public methodGetIPEndPoint Reads an IPEndPoint from the current Position.
(Inherited from NetDataReader)
Public methodGetLargeString Reads a String prefixed with a 4-byte Int32 length header.
(Inherited from NetDataReader)
Public methodGetLongReads a Int64 value using unmanaged memory access.
(Inherited from NetDataReader)
Public methodGetLongArrayReads an array of Int64 values.
(Inherited from NetDataReader)
Public methodGetNullableUnmanagedT 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)
Public methodGetRemainingBytes Reads all remaining Bytes and returns them as a new array.
(Inherited from NetDataReader)
Public methodGetRemainingBytesMemory Returns a ReadOnlyMemoryT of Bytes containing all remaining data.
(Inherited from NetDataReader)
Public methodGetRemainingBytesSegment Gets an ArraySegmentT containing all remaining Bytes.
(Inherited from NetDataReader)
Public methodGetRemainingBytesSpan Returns a ReadOnlySpanT of Bytes containing all remaining data.
(Inherited from NetDataReader)
Public methodGetSByteReads the next SByte from the buffer.
(Inherited from NetDataReader)
Public methodGetSBytesWithLength Reads an SByte array prefixed with its UInt16 length.
(Inherited from NetDataReader)
Public methodGetShortReads a Int16 value using unmanaged memory access.
(Inherited from NetDataReader)
Public methodGetShortArrayReads an array of Int16 values.
(Inherited from NetDataReader)
Public methodGetString Reads a String from the current position.
(Inherited from NetDataReader)
Public methodGetString(Int32) Reads a String with a maximum character limit.
(Inherited from NetDataReader)
Public methodGetStringArray Reads an array of String values.
(Inherited from NetDataReader)
Public methodGetStringArray(Int32) Reads an array of String values with a maximum character limit per element.
(Inherited from NetDataReader)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodGetUIntReads a UInt32 value using unmanaged memory access.
(Inherited from NetDataReader)
Public methodGetUIntArrayReads an array of UInt32 values.
(Inherited from NetDataReader)
Public methodGetULongReads a UInt64 value using unmanaged memory access.
(Inherited from NetDataReader)
Public methodGetULongArrayReads an array of UInt64 values.
(Inherited from NetDataReader)
Public methodGetUnmanagedT 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)
Public methodGetUnmanagedArrayT Reads an array of unmanaged values prefixed by a UInt16 length.
(Inherited from NetDataReader)
Public methodGetUShortReads a UInt16 value using unmanaged memory access.
(Inherited from NetDataReader)
Public methodGetUShortArrayReads an array of UInt16 values.
(Inherited from NetDataReader)
Public methodPeekBoolReads the Boolean at the current position without advancing the Position.
(Inherited from NetDataReader)
Public methodPeekByteReads the Byte at the current position without advancing the Position.
(Inherited from NetDataReader)
Public methodPeekCharReads the Char at the current position without advancing the Position.
(Inherited from NetDataReader)
Public methodPeekDoubleReads the Double at the current position without advancing the Position.
(Inherited from NetDataReader)
Public methodPeekFloatReads the Single at the current position without advancing the Position.
(Inherited from NetDataReader)
Public methodPeekIntReads the Int32 at the current position without advancing the Position.
(Inherited from NetDataReader)
Public methodPeekLongReads the Int64 at the current position without advancing the Position.
(Inherited from NetDataReader)
Public methodPeekRemainingBytes Reads all remaining Bytes and returns them as a new array without advancing the reader _position.
(Inherited from NetDataReader)
Public methodPeekRemainingBytesMemory Returns a ReadOnlyMemoryT of Bytes containing all remaining data without advancing the reader _position.
(Inherited from NetDataReader)
Public methodPeekRemainingBytesSpan Returns a ReadOnlySpanT of Bytes containing all remaining data without advancing the reader _position.
(Inherited from NetDataReader)
Public methodPeekSByteReads the SByte at the current position without advancing the Position.
(Inherited from NetDataReader)
Public methodPeekShortReads the Int16 at the current position without advancing the Position.
(Inherited from NetDataReader)
Public methodPeekString Reads a String without advancing the Position.
(Inherited from NetDataReader)
Public methodPeekString(Int32) Reads a String with a character limit without advancing the Position.
(Inherited from NetDataReader)
Public methodPeekUIntReads the UInt32 at the current position without advancing the Position.
(Inherited from NetDataReader)
Public methodPeekULongReads the UInt64 at the current position without advancing the Position.
(Inherited from NetDataReader)
Public methodPeekUnmanagedT Reads an unmanaged value of type T at the current position without advancing the Position.
(Inherited from NetDataReader)
Public methodPeekUShortReads the UInt16 at the current position without advancing the Position.
(Inherited from NetDataReader)
Public methodRecycle 
Public methodSetPosition Sets the current read Position to a specific index.
(Inherited from NetDataReader)
Public methodSetSource(Byte) Reinitializes the reader using a Byte array.
(Inherited from NetDataReader)
Public methodSetSource(NetDataWriter) Reinitializes the reader using data from a NetDataWriter.
(Inherited from NetDataReader)
Public methodSetSource(Byte, Int32, Int32) Reinitializes the reader using a segment of a Byte array.
(Inherited from NetDataReader)
Public methodSkipBytes Advances the Position by the specified count.
(Inherited from NetDataReader)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodTryGetBoolAttempts to read a Boolean without throwing an exception.
(Inherited from NetDataReader)
Public methodTryGetByteAttempts to read a Byte without throwing an exception.
(Inherited from NetDataReader)
Public methodTryGetBytesWithLengthAttempts to read a Byte array with a length header without throwing an exception.
(Inherited from NetDataReader)
Public methodTryGetCharAttempts to read a Char without throwing an exception.
(Inherited from NetDataReader)
Public methodTryGetDoubleAttempts to read a Double without throwing an exception.
(Inherited from NetDataReader)
Public methodTryGetFloatAttempts to read a Single without throwing an exception.
(Inherited from NetDataReader)
Public methodTryGetIntAttempts to read an Int32 without throwing an exception.
(Inherited from NetDataReader)
Public methodTryGetLongAttempts to read a Int64 without throwing an exception.
(Inherited from NetDataReader)
Public methodTryGetSByteAttempts to read an SByte without throwing an exception.
(Inherited from NetDataReader)
Public methodTryGetShortAttempts to read a Int16 without throwing an exception.
(Inherited from NetDataReader)
Public methodTryGetStringAttempts to read a String without throwing an exception.
(Inherited from NetDataReader)
Public methodTryGetStringArrayAttempts to read a String array without throwing an exception.
(Inherited from NetDataReader)
Public methodTryGetUIntAttempts to read a UInt32 without throwing an exception.
(Inherited from NetDataReader)
Public methodTryGetULongAttempts to read a UInt64 without throwing an exception.
(Inherited from NetDataReader)
Public methodTryGetUnmanagedT 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)
Public methodTryGetUShortAttempts to read a UInt16 without throwing an exception.
(Inherited from NetDataReader)
Top
Extension Methods
 NameDescription
Public Extension MethodMethodInvoke Calls the object method by name.
(Defined by ObjectEx)
Public Extension MethodPropertyGet Gets the value of the object property by name.
(Defined by ObjectEx)
Public Extension MethodPropertyGetT Gets the value of the object property by name.
(Defined by ObjectEx)
Public Extension MethodPropertySet Sets the value of the object property by name.
(Defined by ObjectEx)
Top
See Also