Freigeben über


IDataInput.ReadByte Method

Definition

Reads and returns one input byte.

[Android.Runtime.Register("readByte", "()B", "GetReadByteHandler:Java.IO.IDataInputInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public sbyte ReadByte ();
[<Android.Runtime.Register("readByte", "()B", "GetReadByteHandler:Java.IO.IDataInputInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member ReadByte : unit -> sbyte

Returns

the 8-bit value read.

Attributes

Exceptions

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

if an I/O error occurs while reading.

Remarks

Reads and returns one input byte. The byte is treated as a signed value in the range -128 through 127, inclusive. This method is suitable for reading the byte written by the writeByte method of interface DataOutput.

Java documentation for java.io.DataInput.readByte().

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

See also