Lidgren Network Library documentation |
NetBuffer..::..ReadBytes Method (array<Byte>[]()[][], Int32, Int32) |
NetBuffer Class See Also Send Feedback |
Reads the specified number of bytes into a preallocated array
Namespace: Lidgren.Network
Assembly: Lidgren.Network (in Lidgren.Network.dll) Version: 2012.1.7.0 (2012.1.7.0)
Syntax
C# |
---|
public void ReadBytes( byte[] into, int offset, int numberOfBytes ) |
Visual Basic |
---|
Public Sub ReadBytes ( _ into As Byte(), _ offset As Integer, _ numberOfBytes As Integer _ ) |
Visual C++ |
---|
public: void ReadBytes( array<unsigned char>^ into, int offset, int numberOfBytes ) |
Parameters
- into
- Type: array<System..::..Byte>[]()[][]
The destination array
- offset
- Type: System..::..Int32
The offset where to start writing in the destination array
- numberOfBytes
- Type: System..::..Int32
The number of bytes to read