BufferSegmentReadBytes(Int32, Int32) Method |
Reads a number of bytes at offset in the buffer.
Namespace: Demo3D.IOAssembly: Demo3D.IO (in Demo3D.IO.dll) Version: 19.00.00
Syntaxpublic BufferSegment ReadBytes(
int offset,
int length
)
Parameters
- offset Int32
- The offset into the buffer to start reading.
- length Int32
- The number of bytes to read.
Return Value
BufferSegmentThe 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