Java.IO.DataInputStream.Read Method
Reads up to byteCount bytes from this stream and stores them in the byte array buffer starting at byteOffset.

Syntax

[Android.Runtime.Register("read", "([BII)I", "")]
public override sealed int Read (byte[] buffer, int offset, int length)

Parameters

buffer
the byte array in which to store the bytes read.
byteOffset
Documentation for this section has not yet been entered.
byteCount
Documentation for this section has not yet been entered.
offset
the initial position in buffer to store the bytes read from this stream.
length
the maximum number of bytes to store in buffer.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.IO.IOException

Remarks

Reads up to byteCount bytes from this stream and stores them in the byte array buffer starting at byteOffset. Returns the number of bytes actually read or -1 if the end of the stream has been reached.

[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