brfile_write_cbfn
write
member of the br_filesystem
125
structure.
typedef
brfile.h
for a precise declaration)
br_size_t brfile_write_cbfn(const void*,br_size_t,unsigned,void*) Write block
Buffer containing block to be written.
Size of each element in block.
Maximum number of elements to write.
Specification
Description:
An application defined call-back function writing a block to a file.CBFnFileWrite()
br_size_t BR_CALLBACK CBFnFileWrite(const void* buf, br_size_t size, unsigned int nelems, void* f)
const void * buf
br_size_t size
unsigned int nelems
void * f
Preconditions: BRender has completed initialisation. BRender is the only direct caller of this function.
Effects: Write up to
nelems
elements from buf
to the file f
.Result:
br_size_t
Return the number of complete elements written, which may be less than nelems
if an error occurs (such as running out of file space).
Example: See
stdfile.c
for examples of filing system functions.