Os.Lseek(FileDescriptor, Int64, Int32) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
请参阅 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
参数
文件偏移量已更改的描述符。
- offset
- Int64
操作使用的字节偏移量;其解释取决于 whence。
- whence
- Int32
如何解释偏移量,例如 SEEK_SET或 SEEK_CURSEEK_END。
返回
生成的文件偏移量,以字节为单位,从文件的开头开始。
- 特性
例外
注解
请参阅 lseek(2)。
Java文档android.system.Os.lseek(java.io.FileDescriptor, long, int)。
本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。