PHP.nl

eio_fallocate

eio_fallocate

Allows the caller to directly manipulate the allocated disk space for a file

resource **eio_fallocate** mixed $fd int $mode int $offset int $length int $pri callable $callback mixed $data

allows the caller to directly manipulate the allocated disk space for the file specified by file descriptor for the byte range starting at and continuing for bytes. eio_fallocate``fd``offset``length

Opmerking: > ### File should be opened for writing

should be logically 'd with , or

EIO_O_CREATOREIO_O_WRONLY``EIO_O_RDWR

fd Stream, Socket resource, or numeric file descriptor, e.g. returned by . eio_open

modeCurrently only one flag is supported for mode: (the same as POSIX constant ). EIO_FALLOC_FL_KEEP_SIZE``FALLOC_FL_KEEP_SIZE

offsetSpecifies start of the byte range.

lengthSpecifies length the byte range.

pri``callback``data Arbitrary variable passed to . callback

returns request resource on success,return.falseforfailure.

eio_fallocate