eio_ftruncate
eio_ftruncate
Truncate a file
resource **eio_ftruncate** mixed $fd int $offset int $pri callable $callback mixed $data
causes a regular file referenced by
file descriptor to be truncated to precisely
bytes.
eio_ftruncate``fd``length
fdStream, Socket resource, or numeric file descriptor.
offsetOffset from beginning of the file
pri``callback``data
Arbitrary variable passed to .
callback
returns request resource on success,return.falseforfailure.
eio_ftruncate
eio_truncate