Language

Os.Sendfile Method

Definition

Overloads

Sendfile(FileDescriptor, FileDescriptor, Int64Ref, Int64)

[Android.Runtime.Register("sendfile", "(Ljava/io/FileDescriptor;Ljava/io/FileDescriptor;Landroid/system/Int64Ref;J)J", "", ApiSince=28)]
public static long Sendfile(Java.IO.FileDescriptor? outFd, Java.IO.FileDescriptor? inFd, Android.Systems.Int64Ref? offset, long byteCount);
[<Android.Runtime.Register("sendfile", "(Ljava/io/FileDescriptor;Ljava/io/FileDescriptor;Landroid/system/Int64Ref;J)J", "", ApiSince=28)>]
static member Sendfile : Java.IO.FileDescriptor * Java.IO.FileDescriptor * Android.Systems.Int64Ref * int64 -> int64

Parameters

outFd
FileDescriptor

The descriptor to which the data is written.

inFd
FileDescriptor

The descriptor from which the data is read.

offset
Int64Ref

The input byte offset, updated after the transfer. If null, the input descriptor's current offset is used and advanced.

byteCount
Int64

The maximum number of bytes to transfer.

Returns

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

Attributes

Remarks

See sendfile(2).

Java documentation for android.system.Os.sendfile(java.io.FileDescriptor, java.io.FileDescriptor, android.system.Int64Ref, 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

Sendfile(FileDescriptor, FileDescriptor, MutableLong, Int64)

See <a href="http://man7.

[Android.Runtime.Register("sendfile", "(Ljava/io/FileDescriptor;Ljava/io/FileDescriptor;Landroid/util/MutableLong;J)J", "")]
public static long Sendfile(Java.IO.FileDescriptor? outFd, Java.IO.FileDescriptor? inFd, Android.Util.MutableLong? inOffset, long byteCount);
[<Android.Runtime.Register("sendfile", "(Ljava/io/FileDescriptor;Ljava/io/FileDescriptor;Landroid/util/MutableLong;J)J", "")>]
static member Sendfile : Java.IO.FileDescriptor * Java.IO.FileDescriptor * Android.Util.MutableLong * int64 -> int64

Parameters

outFd
FileDescriptor

The descriptor to which the data is written.

inFd
FileDescriptor

The descriptor from which the data is read.

inOffset
MutableLong

The input byte offset, updated after the transfer. If null, the input descriptor's current offset is used and advanced.

byteCount
Int64

The maximum number of bytes to transfer.

Returns

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

Attributes

Exceptions

Remarks

Java documentation for android.system.Os.sendfile(java.io.FileDescriptor, java.io.FileDescriptor, android.system.Int64Ref, 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