OutputStreamInterface Class Reference IO

#include <iostreams.h>

Inheritance diagram for OutputStreamInterface:

详细描述

Creates an OutputStreamInterface class to write bytes into streams.

公共成员函数

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

私有成员函数

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

成员函数文档编制

◆  MAXON_INTERFACE()

MAXON_INTERFACE ( OutputStreamInterface   ,
MAXON_REFERENCE_NORMAL   ,
"net.maxon.interface.outputstream"   
)
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.

参数
[in] data 数据 that should be written to the stream.
返回
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.

返回
True is the operation succeeded.