Language

Os.Pwrite Method

Definition

Overloads

Pwrite(FileDescriptor, ByteBuffer, Int64)

See pwrite(2).

[Android.Runtime.Register("pwrite", "(Ljava/io/FileDescriptor;Ljava/nio/ByteBuffer;J)I", "")]
public static int Pwrite(Java.IO.FileDescriptor? fd, Java.Nio.ByteBuffer? buffer, long offset);
[<Android.Runtime.Register("pwrite", "(Ljava/io/FileDescriptor;Ljava/nio/ByteBuffer;J)I", "")>]
static member Pwrite : Java.IO.FileDescriptor * Java.Nio.ByteBuffer * int64 -> int

Parameters

fd
FileDescriptor

The file descriptor to write to.

buffer
ByteBuffer

The source buffer. Its position advances by the number of bytes written.

offset
Int64

The requested byte offset in the file; the descriptor's current offset is not changed.

Returns

The number of bytes written, which can be less than the requested count.

Attributes

Exceptions

Remarks

See pwrite(2).

Java documentation for android.system.Os.pwrite(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

Pwrite(FileDescriptor, Byte[], Int32, Int32, Int64)

See pwrite(2).

[Android.Runtime.Register("pwrite", "(Ljava/io/FileDescriptor;[BIIJ)I", "")]
public static int Pwrite(Java.IO.FileDescriptor? fd, byte[]? bytes, int byteOffset, int byteCount, long offset);
[<Android.Runtime.Register("pwrite", "(Ljava/io/FileDescriptor;[BIIJ)I", "")>]
static member Pwrite : Java.IO.FileDescriptor * byte[] * int * int * int64 -> int

Parameters

fd
FileDescriptor

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.

offset
Int64

The requested byte offset in the file; the descriptor's current offset is not changed.

Returns

The number of bytes written, which can be less than the requested count.

Attributes

Exceptions

Remarks

See pwrite(2).

Java documentation for android.system.Os.pwrite(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.

Applies to