GraphicsStream.Read Method

Language:

Reads from the current stream and advances the position within it by the number of bytes read.

Definition

Visual Basic Public Function Read( _
    ByVal returnType As Type, _
    ByVal ranks() As Integer _
) As Array
C# public Array Read(
    Type returnType,
    int[] ranks
);
C++ public:
ArrayRead(
    TypereturnType,
    array<int>^ ranks
);
JScript public function Read(
    returnType : Type,
    ranks : int[]
) : Array;

Parameters

returnType System.Type
Value that indicates the Type Leave Site of the returned array.
ranks System.Int32[]
An array of Int32 Leave Site values that represent the size of each dimension of the returning array.

Return Value

System.Array
An Array Leave Site of type returnType that contains the data read from the stream buffer.

Remarks

Exceptions
NotSupportedException Leave Site Unable to read from the stream buffer, or there is no data to read.
ArgumentException Leave Site One of the parameters is invalid, the stream buffer is not large enough to hold the requested data, or ranks is greater than three.


Send comments about this topic to Microsoft. © Microsoft Corporation. All rights reserved.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center