Click or drag to resize

BufferSegmentReadBytes Method (Int32, Int32)

Reads a number of bytes at offset in the buffer.

Namespace:  Demo3D.IO
Assembly:  Demo3D.IO (in Demo3D.IO.dll) Version: 15.0.2.11458
Syntax
C#
public BufferSegment 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: BufferSegment
The value read.
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