Java.IO.DataInputStream.ReadFully Method
Reads byteCount bytes from this stream and stores them in the byte array dst starting at offset.

Syntax

[Android.Runtime.Register("readFully", "([BII)V", "")]
public void ReadFully (byte[] buffer, int offset, int length)

Parameters

dst
the byte array into which the data is read.
offset
the offset in dst at which to store the bytes.
byteCount
the number of bytes to read.

Exceptions

TypeReason
Java.IO.IOException

Remarks

Reads byteCount bytes from this stream and stores them in the byte array dst starting at offset. If byteCount is zero, then this method returns without reading any bytes. Otherwise, this method blocks until byteCount bytes have been read. If insufficient bytes are available, EOFException is thrown. If an I/O error occurs, IOException is thrown. When an exception is thrown, some bytes may have been consumed from the stream and written into the array.

[Android Documentation]

Requirements

Namespace: Java.IO
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1