#include <oskit/io/blkio.h>OSKIT_COMDECL oskit_blkio_write(oskit_blkio_t *f, const void *buf, oskit_off_t offset, oskit_size_t amount, [out] oskit_size_t *out_actual);
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.
- 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. Must be a multiple of the object's block size.
- amount
- The maximum number of bytes to write. Must be a multiple of the object's block size.
- out_actual
- The actual number of bytes written. Must be a multiple of the object's block size.
Returns 0 on success, or an error code specified in <oskit/error.h>, on error.