OutputStreamInterface Class Reference

#include <iostreams.h>

Inheritance diagram for OutputStreamInterface:

Detailed Description

Creates an OutputStreamInterface class to write bytes into streams.

Public Member Functions

MAXON_METHOD Result< void > Write (const Block< const Byte > &data)
 
MAXON_METHOD Result< void > Flush ()
 

Private Member Functions

 MAXON_INTERFACE (OutputStreamInterface, MAXON_REFERENCE_NORMAL, "net.maxon.interface.outputstream", MAXON_IMPLEMENTATION_MODULE("net.maxon.kernel"))
 

Member Function Documentation

◆ MAXON_INTERFACE()

MAXON_INTERFACE ( OutputStreamInterface  ,
MAXON_REFERENCE_NORMAL  ,
"net.maxon.interface.outputstream"  ,
MAXON_IMPLEMENTATION_MODULE("net.maxon.kernel")   
)
private

◆ Write()

MAXON_METHOD Result<void> Write ( const Block< const Byte > &  data)

Write bytes to the stream. 'bytes' is of type Int (not Int64) as 'buffer' can never hold more bytes on a 32-bit system.

Parameters
[in]dataData that should be written to the stream.
Returns
True if all bytes are written to the stream.

◆ Flush()

MAXON_METHOD Result<void> Flush ( )

Flushes the output stream and forces any buffered output bytes to be written.

Returns
True is the operation succeeded.