TruncateFd

class TruncateFd(val fd: FileDescriptor, val length: Long)(source)

Truncate or extend a file fd to a specified length. If the file was larger than this size, the extra data will be discarded. If the file was smaller than this size, it will be extended as if by writing bytes with the value zero.

The file offset is not changed.

Constructors

Link copied to clipboard
constructor(fd: FileDescriptor, length: Long)

Types

Link copied to clipboard

Properties

Link copied to clipboard
Link copied to clipboard