next up previous contents index
Next: 4.8.5 copyto: Copy data Up: 4.8 oskit_stream: standard interface Previous: 4.8.3 seek: Change the

4.8.4 setsize: Set the size of this object

 

SYNOPSIS

#include <oskit/com/stream.h>

OSKIT_COMDECL oskit_stream_setsize(oskit_stream_t *f, oskit_u64_t new_size);

DESCRIPTION

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.

PARAMETERS

f
The object whose size is to be changed.
new_size
The new size in bytes for this object.

RETURNS

Returns 0 on success, or an error code specified in <oskit/error.h>, on error.



University of Utah Flux Research Group