fn setEndPos(self: File, length: u64) SetEndPosError!void

Shrinks or expands the file. The file offset after this call is left unchanged.

Parameters

self: File,
length: u64,