Bwrite — Write the UBF buffer in binary form to stream
Write the UBF buffer p_ub to output stream (outf). The output buffer format is in machine architecture dependent (LSB/MSB, integer size). To output only used space of the UBF buffer is streamed.
On success, Bwrite() return zero; on error, -1 is returned, with Berror set to indicate the error.
Note that Bstrerror() returns generic error message plus custom message with debug info from last function call.
BALIGNERR Corrupted buffer or pointing to not aligned memory area.
BNOTFLD Buffer not fielded, not correctly allocated or corrupted.
BEINVAL outf is NULL.
BEUNIX Failed to read from stream.
BNOSPACE No space in p_ub.