Microsoft SDK for Java

DataStream.readShorts

Reads the specified number of short integers from this stream into a short array.

Syntax

public short[] readShorts( int count )

public void readShorts( short[] buffer, int index, int count )

Parameters

count

The number of short integers to read.

buffer

The starting index in the array.

index

The byte offset into the buffer.

Return Value

Returns a short integer array containing the data that was read.

Remarks

This method implements the IDataStream.readShorts method. This method validates the arguments and then calls the readCore method to read the data.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.