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.GenericAssembly: 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
)
Public Overrides Function Read (
buffer As Byte(),
offset As Integer,
count As Integer
) As Integer
public:
virtual int Read(
array<unsigned char>^ buffer,
int offset,
int count
) override
abstract Read :
buffer : byte[] *
offset : int *
count : int -> int
override Read :
buffer : byte[] *
offset : int *
count : int -> int
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:
Int32The 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 Exception | Condition |
---|
ObjectDisposedException | Stream is closed. |
NotSupportedException | The underlying memory does not support reading. The CanRead property is set to false. |
ArgumentNullException | The buffer parameter is set to a null reference.
|
ArgumentOutOfRangeException | The offset parameter is less than zero. |
ArgumentOutOfRangeException | The count parameter is less than zero. |
ArgumentException | Invalid offset. |
ArgumentException | Invalid count. count must be a multiple of element size. |
See Also