UmbraOutputStream struct

User provided output stream interface.

Public variables

void* userData
An arbitrary pointer that Umbra passes to write.
UmbraWriteFunc write
A function called by Umbra to write data from a stream.

Variable details

UmbraWriteFunc UmbraOutputStream::write

A function called by Umbra to write data from a stream.

This function should attempt to write numBytes bytes to the stream, and return the number of bytes that were actually written. Return a value less than numBytes to signal an error to the caller.

See UmbraWriteFunc for a complete description of the function arguments.