Freigeben über


ObjectInputStream.ReadFully Method

Definition

Overloads

ReadFully(Byte[])

Reads bytes, blocking until all bytes are read.

ReadFully(Byte[], Int32, Int32)

Reads bytes, blocking until all bytes are read.

ReadFully(Byte[])

Reads bytes, blocking until all bytes are read.

[Android.Runtime.Register("readFully", "([B)V", "GetReadFully_arrayBHandler")]
public virtual void ReadFully (byte[]? buf);
[<Android.Runtime.Register("readFully", "([B)V", "GetReadFully_arrayBHandler")>]
abstract member ReadFully : byte[] -> unit
override this.ReadFully : byte[] -> unit

Parameters

buf
Byte[]

the buffer into which the data is read

Implements

Attributes

Exceptions

if the end of the input is reached before the read request can be satisfied.

if an error occurs while reading from the source stream.

Remarks

Reads bytes, blocking until all bytes are read.

Java documentation for java.io.ObjectInputStream.readFully(byte[]).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

ReadFully(Byte[], Int32, Int32)

Reads bytes, blocking until all bytes are read.

[Android.Runtime.Register("readFully", "([BII)V", "GetReadFully_arrayBIIHandler")]
public virtual void ReadFully (byte[]? buf, int off, int len);
[<Android.Runtime.Register("readFully", "([BII)V", "GetReadFully_arrayBIIHandler")>]
abstract member ReadFully : byte[] * int * int -> unit
override this.ReadFully : byte[] * int * int -> unit

Parameters

buf
Byte[]

the buffer into which the data is read

off
Int32

the start offset of the data

len
Int32

the maximum number of bytes to read

Implements

Attributes

Exceptions

if the end of the input is reached before the read request can be satisfied.

if an error occurs while reading from the source stream.

Remarks

Reads bytes, blocking until all bytes are read.

Java documentation for java.io.ObjectInputStream.readFully(byte[], int, int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to