Os.Write 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 |
|---|---|
| Write(FileDescriptor, ByteBuffer) |
See write(2). |
| Write(FileDescriptor, Byte[], Int32, Int32) |
See write(2). |
Write(FileDescriptor, ByteBuffer)
See write(2).
[Android.Runtime.Register("write", "(Ljava/io/FileDescriptor;Ljava/nio/ByteBuffer;)I", "")]
public static int Write(Java.IO.FileDescriptor? fd, Java.Nio.ByteBuffer? buffer);
[<Android.Runtime.Register("write", "(Ljava/io/FileDescriptor;Ljava/nio/ByteBuffer;)I", "")>]
static member Write : Java.IO.FileDescriptor * Java.Nio.ByteBuffer -> int
Parameters
The file descriptor to write to.
- buffer
- ByteBuffer
The source buffer. Its position advances by the number of bytes written.
Returns
The number of bytes written, which can be less than the requested count.
- Attributes
Exceptions
Remarks
See write(2).
Java documentation for android.system.Os.write(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
Write(FileDescriptor, Byte[], Int32, Int32)
See write(2).
[Android.Runtime.Register("write", "(Ljava/io/FileDescriptor;[BII)I", "")]
public static int Write(Java.IO.FileDescriptor? fd, byte[]? bytes, int byteOffset, int byteCount);
[<Android.Runtime.Register("write", "(Ljava/io/FileDescriptor;[BII)I", "")>]
static member Write : Java.IO.FileDescriptor * byte[] * int * int -> int
Parameters
The file descriptor to write to.
- bytes
- Byte[]
The source array containing the bytes to write.
- byteOffset
- Int32
The starting index in the source array.
- byteCount
- Int32
The maximum number of bytes to write.
Returns
The number of bytes written, which can be less than the requested count.
- Attributes
Exceptions
Remarks
See write(2).
Java documentation for android.system.Os.write(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.