Click or drag to resize

PacketIOReadBytes Method (Int32, Int32)

Reads a number of bytes at offset in the buffer.

Namespace:  Demo3D.IO
Assembly:  Demo3D.IO (in Demo3D.IO.dll) Version: 10.0.0.0 (10.0.0.0)
Syntax
C#
public Buffer ReadBytes(
	int offset,
	int length
)

Parameters

offset
Type: SystemInt32
The offset into the buffer to start reading.
length
Type: SystemInt32
The number of bytes to read.

Return Value

Type: Buffer
The value read.

Implements

IOffsetDataReaderReadBytes(Int32, Int32)
Remarks
The buffer returned may be a copy of the data. For a PacketReader the data is effectively immutable, it doesn't matter. For a PacketWriter it means that there's no guarantee that the buffer returned will reflect subsequent changes to the data in the packet.
See Also