Language

Os.Lseek(FileDescriptor, Int64, Int32) Method

Definition

See lseek(2).

[Android.Runtime.Register("lseek", "(Ljava/io/FileDescriptor;JI)J", "")]
public static long Lseek(Java.IO.FileDescriptor? fd, long offset, int whence);
[<Android.Runtime.Register("lseek", "(Ljava/io/FileDescriptor;JI)J", "")>]
static member Lseek : Java.IO.FileDescriptor * int64 * int -> int64

Parameters

fd
FileDescriptor

The descriptor whose file offset is changed.

offset
Int64

The byte offset used by the operation; its interpretation depends on whence.

whence
Int32

How to interpret the offset, such as SEEK_SET, SEEK_CUR or SEEK_END.

Returns

The resulting file offset, in bytes from the start of the file.

Attributes

Exceptions

Remarks

See lseek(2).

Java documentation for android.system.Os.lseek(java.io.FileDescriptor, long, 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