AsynchronousFileChannel.Truncate(Int64) 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.
Truncates this channel's file to the given size.
[Android.Runtime.Register("truncate", "(J)Ljava/nio/channels/AsynchronousFileChannel;", "GetTruncate_JHandler", ApiSince=26)]
public abstract Java.Nio.Channels.AsynchronousFileChannel? Truncate (long size);
[<Android.Runtime.Register("truncate", "(J)Ljava/nio/channels/AsynchronousFileChannel;", "GetTruncate_JHandler", ApiSince=26)>]
abstract member Truncate : int64 -> Java.Nio.Channels.AsynchronousFileChannel
Parameters
- size
- Int64
The new size, a non-negative byte count
Returns
This file channel
- Attributes
Remarks
Java documentation for java.nio.channels.AsynchronousFileChannel.truncate(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.