SbNativeArrayTReadBlock Method |
Copies element from the current stream to an array and advances the position within the
stream by the number of elements read.
Namespace: OIV.Inventor.GenericAssembly: OIV.Inventor.SbLinear (in OIV.Inventor.SbLinear.dll) Version: 2024.2.2.Release.778f4cc64de03c89c1282c66aa1f73c0e9a1408b
Syntax public int ReadBlock(
T[] buffer,
int offset,
int count
)
Public Function ReadBlock (
buffer As T(),
offset As Integer,
count As Integer
) As Integer
public:
int ReadBlock(
array<T>^ buffer,
int offset,
int count
)
member ReadBlock :
buffer : 'T[] *
offset : int *
count : int -> int
Parameters
- buffer
- Type: T
The buffer to which element are copied. - offset
- Type: SystemInt32
The element offset in the buffer at which to begin writing elements. - count
- Type: SystemInt32
The number of elements to be read.
Return Value
Type:
Int32The total number of elements read into array. This can be less than the number of
elements requested if that many elements aren't currently available, or 0 if the end
of the stream has been reached before any data can be read.
See Also