AudioDataStream.canReadData Method

Definition

Overloads

canReadData(long bytesRequested)

Check whether the stream has enough data to be read.

canReadData(long pos, long bytesRequested)

Check whether the stream has enough data to be read, starting from the specified position.

canReadData(long bytesRequested)

Check whether the stream has enough data to be read.

public boolean canReadData(long bytesRequested)

Parameters

bytesRequested
long

The requested data size in bytes.

Returns

boolean

A bool indicating the result.

canReadData(long pos, long bytesRequested)

Check whether the stream has enough data to be read, starting from the specified position.

public boolean canReadData(long pos, long bytesRequested)

Parameters

pos
long

The position to start with.

bytesRequested
long

The requested data size in bytes.

Returns

boolean

A bool indicating the result.

Applies to