#include <oskit/io/absio.h>OSKIT_COMDECL oskit_absio_setsize(oskit_absio_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 absolute I/O objects may be fixed-size, such as objects representing preallocated memory buffers; 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.
Returns 0 on success, or an error code specified in <oskit/error.h>, on error.