EventDriverFiles.truncate

Shrinks or extends a file to the specified size.

interface EventDriverFiles
@safe nothrow
void
truncate

Parameters

file FileFD

Handle of the file to resize

size ulong

Desired file size in bytes

on_finish FileIOCallback

Called when the operation finishes - the size parameter is always set to zero

Meta