#include <oskit/io/blkio.h>OSKIT_COMDECL oskit_blkio_setsize(oskit_blkio_t *f, oskit_off_t new_size);
This method sets the size of this object to new_size bytes. If new_size is larger than the former size of this object, then the contents of the object between its former end and its new end are undefined.Note that some block I/O objects may be fixed-size, such as objects representing physical disks or partitions; in such cases, this method will always return OSKIT_E_NOTIMPL.
- f
- The object whose size is to be changed.
- new_size
- The new size in bytes for this object. Must be a multiple of the object's block size.
Returns 0 on success, or an error code specified in <oskit/error.h>, on error.