#include <oskit/com/stream.h>OSKIT_COMDECL oskit_stream_setsize(oskit_stream_t *f, oskit_u64_t new_size);
This method sets the size of this stream to new_size bytes. If new_size is larger than the former size of this stream, then the contents of the stream between its former end and its new end are undefined.The seek pointer is not affected by this method.
- 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.