Os.Pread Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| Pread(FileDescriptor, ByteBuffer, Int64) |
See pread(2). |
| Pread(FileDescriptor, Byte[], Int32, Int32, Int64) |
See pread(2). |
Pread(FileDescriptor, ByteBuffer, Int64)
See pread(2).
[Android.Runtime.Register("pread", "(Ljava/io/FileDescriptor;Ljava/nio/ByteBuffer;J)I", "")]
public static int Pread(Java.IO.FileDescriptor? fd, Java.Nio.ByteBuffer? buffer, long offset);
[<Android.Runtime.Register("pread", "(Ljava/io/FileDescriptor;Ljava/nio/ByteBuffer;J)I", "")>]
static member Pread : Java.IO.FileDescriptor * Java.Nio.ByteBuffer * int64 -> int
Parameters
The file descriptor to read from.
- buffer
- ByteBuffer
The destination buffer. Received bytes start at its current position, and its position advances by the number of bytes read.
- offset
- Int64
The requested byte offset in the file; the descriptor's current offset is not changed.
Returns
The number of bytes read, or 0 at end of file.
- Attributes
Exceptions
Remarks
See pread(2).
Java documentation for android.system.Os.pread(java.io.FileDescriptor, java.nio.ByteBuffer, long).
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
Pread(FileDescriptor, Byte[], Int32, Int32, Int64)
See pread(2).
[Android.Runtime.Register("pread", "(Ljava/io/FileDescriptor;[BIIJ)I", "")]
public static int Pread(Java.IO.FileDescriptor? fd, byte[]? bytes, int byteOffset, int byteCount, long offset);
[<Android.Runtime.Register("pread", "(Ljava/io/FileDescriptor;[BIIJ)I", "")>]
static member Pread : Java.IO.FileDescriptor * byte[] * int * int * int64 -> int
Parameters
The file descriptor to read from.
- bytes
- Byte[]
The destination array for the bytes read.
- byteOffset
- Int32
The starting index in the destination array.
- byteCount
- Int32
The maximum number of bytes to read.
- offset
- Int64
The requested byte offset in the file; the descriptor's current offset is not changed.
Returns
The number of bytes read, or 0 at end of file.
- Attributes
Exceptions
Remarks
See pread(2).
Java documentation for android.system.Os.pread(java.io.FileDescriptor, byte[], int, int, long).
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.