Base Framework
|
Output stream. More...
#include <base/io/OutputStream.h>
Inherits Stream.
Inherited by FileDescriptorOutputStream [virtual]
, FileOutputStream, FilterOutputStream [virtual]
, MemoryOutputStream, Pipe [virtual]
, StreamSocket [virtual]
, StringOutputStreamWrapper [virtual]
, and WideStringOutputStreamWrapper [virtual]
.
Public Member Functions | |
virtual void | flush ()=0 |
virtual unsigned int | write (const uint8 *buffer, unsigned int size, bool nonblocking)=0 |
![]() | |
virtual void | close ()=0 |
virtual | ~Stream () noexcept(false) |
![]() | |
ReferenceCountedObject () noexcept | |
ReferenceCountedObject (const ReferenceCountedObject ©) noexcept | |
ReferenceCountedObject (ReferenceCountedObject &&move) noexcept | |
ReferenceCountedObject & | operator= (const ReferenceCountedObject ©) noexcept |
ReferenceCountedObject & | operator= (ReferenceCountedObject &&move) noexcept |
MemorySize | getNumberOfReferences_INTERNAL () const noexcept |
virtual bool | useGarbageCollector () const noexcept |
![]() | |
DynamicObject () noexcept | |
bool | isValidObject () const noexcept |
virtual | ~DynamicObject () noexcept(false) |
_COM_AZURE_DEV__BASE__OVERRIDE_ALLOC () | |
Output stream.
Class representing an output stream of bytes.
|
pure virtual |
Forces any buffered bytes to be written out.
Implemented in MemoryOutputStream, StreamSocket, FileOutputStream, StringOutputStream, Pipe, FileDescriptorOutputStream, BufferedOutputStream, FilterOutputStream, StringOutputStreamWrapper, and WideStringOutputStreamWrapper.
|
pure virtual |
Writes the specified number of bytes in the buffer to the stream. In blocking mode the method does not return until all bytes have been written. In non-blocking mode the total number of bytes written may be any number below or equal to the requested number of bytes.
buffer | The buffer containing the bytes to be written. |
size | The number of bytes to be written. |
nonblocking | Specifies that the method may not block. |
Implemented in MemoryOutputStream, StreamSocket, Pipe, FileDescriptorOutputStream, BufferedOutputStream, FilterOutputStream, StringOutputStreamWrapper, WideStringOutputStreamWrapper, and FileOutputStream.