next up previous contents index
Next: 5.1.3 getsize: Get the Up: 5.1 oskit_absio: Absolute I/O Previous: 5.1.1 read: Read from

5.1.2 write: Write to this object, starting at specified offset

 

SYNOPSIS

#include <oskit/io/absio.h>

OSKIT_COMDECL oskit_absio_write(oskit_absio_t *f, const void *buf, oskit_off_t offset, oskit_size_t amount, [out] oskit_size_t *out_actual);

DESCRIPTION

This method writes no more than amount bytes from buf into this object, starting at offset. out_actual is set to the actual number of bytes written.

PARAMETERS

f
The object to which to write.
buf
The buffer from which the data is to be copied.
offset
The offset in this object at which to start writing.
amount
The maximum number of bytes to write.
out_actual
The actual number of bytes written.

RETURNS

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



University of Utah Flux Research Group