DataReaderExtensionsReadBytes Method (IDataReader, ArraySegmentByte, Int32, Int32) |
Reads a number of bytes from the current position in the buffer.
The current position is advanced by the number of bytes read.
Namespace:
Demo3D.IO
Assembly:
Demo3D.IO (in Demo3D.IO.dll) Version: 18.03.00
Syntaxpublic static void ReadBytes(
this IDataReader reader,
in ArraySegment<byte> toBuffer,
int toBufferOffset,
int length
)
Parameters
- reader
- Type: Demo3D.IOIDataReader
The data reader. - toBuffer
- Type: SystemArraySegmentByte
The buffer to fill. - toBufferOffset
- Type: SystemInt32
The start position within toBuffer to start writing. - length
- Type: SystemInt32
The number of bytes to read.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IDataReader. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also