Microsoft SDK for Java

DataStream.writeShorts

Writes the contents of the specified short integer array to this stream.

Syntax

public void writeShorts( short[] buffer )

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

Parameters

buffer

An array of primitive types to write.

index

The byte offset into buffer.

count

The number of short integers to write.

Remarks

This method implements the IDataStream.writeShorts method. The first syntax calls the writeShorts method to write the data. The second syntax validates the arguments and then calls the writeCore method to write the data.

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