Language

Os.Ftruncate(FileDescriptor, Int64) Method

Definition

[Android.Runtime.Register("ftruncate", "(Ljava/io/FileDescriptor;J)V", "")]
public static void Ftruncate(Java.IO.FileDescriptor? fd, long length);
[<Android.Runtime.Register("ftruncate", "(Ljava/io/FileDescriptor;J)V", "")>]
static member Ftruncate : Java.IO.FileDescriptor * int64 -> unit

Parameters

fd
FileDescriptor

The descriptor of the file whose length is changed.

length
Int64

The new file length, in bytes.

Attributes

Exceptions

Remarks

See ftruncate(2).

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