next up previous contents index
Next: 5.3.5 setsize: Set the Up: 5.3 oskit_blkio: Block I/O Previous: 5.3.3 write: Write to

5.3.4 getsize: Get the size of this object

 

SYNOPSIS

#include <oskit/io/blkio.h>

OSKIT_COMDECL oskit_blkio_getsize(oskit_blkio_t *f, [out] oskit_off_t *out_size);

DESCRIPTION

This method returns the current size of this object in bytes.

PARAMETERS

f
The object whose size is desired.
out_size
The current size in bytes of this object. Must be a multiple of the object's block size.

RETURNS

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



University of Utah Flux Research Group