Condividi tramite


IDataInput.SkipBytes(Int32) Method

Definition

Makes an attempt to skip over n bytes of data from the input stream, discarding the skipped bytes.

[Android.Runtime.Register("skipBytes", "(I)I", "GetSkipBytes_IHandler:Java.IO.IDataInputInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public int SkipBytes (int n);
[<Android.Runtime.Register("skipBytes", "(I)I", "GetSkipBytes_IHandler:Java.IO.IDataInputInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member SkipBytes : int -> int

Parameters

n
Int32

the number of bytes to be skipped.

Returns

the number of bytes actually skipped.

Attributes

Exceptions

if a problem occurs during skipping.

Remarks

Makes an attempt to skip over n bytes of data from the input stream, discarding the skipped bytes. However, it may skip over some smaller number of bytes, possibly zero. This may result from any of a number of conditions; reaching end of file before n bytes have been skipped is only one possibility. This method never throws an EOFException. The actual number of bytes skipped is returned.

Java documentation for java.io.DataInput.skipBytes(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