Click or drag to resize
SbNativeArrayTRead Method (Byte, Int32, Int32)
Reads the specified number of bytes into the specified array and advances the position within the stream by the number of bytes read.

Namespace: OIV.Inventor.Generic
Assembly: OIV.Inventor.SbLinear (in OIV.Inventor.SbLinear.dll) Version: 2024.2.2.Release.778f4cc64de03c89c1282c66aa1f73c0e9a1408b
Syntax
public override int Read(
	byte[] buffer,
	int offset,
	int count
)

Parameters

buffer
Type: SystemByte
When this method returns, contains the specified byte array with the values between offset and (offset + count - 1) replaced by the bytes read from the current source. This parameter is passed uninitialized.
offset
Type: SystemInt32
The zero-based byte offset in buffer at which to begin storing the data read from the current stream.
count
Type: SystemInt32
The maximum number of bytes to read from the current stream.

Return Value

Type: Int32
The total number of bytes read into the buffer. This can be less than the number of bytes requested if that many bytes are not currently available, or zero (0) if the end of the stream has been reached.
Exceptions
ExceptionCondition
ObjectDisposedExceptionStream is closed.
NotSupportedExceptionThe underlying memory does not support reading. The CanRead property is set to false.
ArgumentNullExceptionThe buffer parameter is set to a null reference.
ArgumentOutOfRangeExceptionThe offset parameter is less than zero.
ArgumentOutOfRangeExceptionThe count parameter is less than zero.
ArgumentExceptionInvalid offset.
ArgumentExceptionInvalid count. count must be a multiple of element size.
See Also