Os.Read 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 |
|---|---|
| Read(FileDescriptor, ByteBuffer) |
See read(2). |
| Read(FileDescriptor, Byte[], Int32, Int32) |
See read(2). |
Read(FileDescriptor, ByteBuffer)
See read(2).
[Android.Runtime.Register("read", "(Ljava/io/FileDescriptor;Ljava/nio/ByteBuffer;)I", "")]
public static int Read(Java.IO.FileDescriptor? fd, Java.Nio.ByteBuffer? buffer);
[<Android.Runtime.Register("read", "(Ljava/io/FileDescriptor;Ljava/nio/ByteBuffer;)I", "")>]
static member Read : Java.IO.FileDescriptor * Java.Nio.ByteBuffer -> 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.
Returns
The number of bytes read, or 0 at end of file.
- Attributes
Exceptions
Remarks
See read(2).
Java documentation for android.system.Os.read(java.io.FileDescriptor, java.nio.ByteBuffer).
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
Read(FileDescriptor, Byte[], Int32, Int32)
See read(2).
[Android.Runtime.Register("read", "(Ljava/io/FileDescriptor;[BII)I", "")]
public static int Read(Java.IO.FileDescriptor? fd, byte[]? bytes, int byteOffset, int byteCount);
[<Android.Runtime.Register("read", "(Ljava/io/FileDescriptor;[BII)I", "")>]
static member Read : Java.IO.FileDescriptor * byte[] * int * int -> 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.
Returns
The number of bytes read, or 0 at end of file.
- Attributes
Exceptions
Remarks
See read(2).
Java documentation for android.system.Os.read(java.io.FileDescriptor, byte[], int, 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.