Base Framework
|
Filedescriptor output stream. More...
#include <base/io/FileDescriptorOutputStream.h>
Inherits OutputStream, and FileDescriptor.
Public Member Functions | |
FileDescriptorOutputStream () noexcept | |
FileDescriptorOutputStream (const FileDescriptor &fd) noexcept | |
FileDescriptorOutputStream (const FileDescriptorOutputStream ©) noexcept | |
FileDescriptorOutputStream & | operator= (const FileDescriptorOutputStream &assign) noexcept |
void | close () |
void | flush () |
unsigned int | write (const uint8 *buffer, unsigned int size, bool nonblocking=false) |
~FileDescriptorOutputStream () | |
![]() | |
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 () | |
![]() | |
FileDescriptor () noexcept | |
FileDescriptor (OperatingSystem::Handle handle) noexcept | |
FileDescriptor (const FileDescriptor ©) noexcept | |
FileDescriptor & | operator= (const FileDescriptor &assign) noexcept |
bool | isANSITerminal () const noexcept |
bool | isTerminal () const noexcept |
bool | isPipe () const noexcept |
int | getFlags () const |
void | setFlags (int flags) |
OperatingSystem::Handle | getHandle () const noexcept |
bool | isValid () const noexcept |
void | setHandle (OperatingSystem::Handle handle) noexcept |
void | setNonBlocking (bool value) |
~FileDescriptor () | |
Additional Inherited Members | |
![]() | |
static FileDescriptor | getStandardInput () noexcept |
static FileDescriptor | getStandardOutput () noexcept |
static FileDescriptor | getStandardError () noexcept |
![]() | |
Reference< Handle > | fd |
Filedescriptor output stream.
The FileDescriptorOutputStream class serves as a general handle to a sink of bytes within the operatingsystem (e.g. file, socket and pipe). This class is normally not used directly by the application.
|
noexcept |
Initializes file descriptor output stream as invalid.
|
noexcept |
Initializes file descriptor output stream from a file descriptor.
fd | The file descriptor. |
|
noexcept |
Initializes file descriptor output stream from other file descriptor output stream.
FileDescriptorOutputStream::~FileDescriptorOutputStream | ( | ) |
Releases the file descriptor.
|
inlinevirtual |
Closes the stream and releases any system resources associated with the stream.
Reimplemented from FileDescriptor.
|
virtual |
Forces any buffered bytes to be written out.
Implements OutputStream.
|
noexcept |
Assignment of file descriptor output stream to this file descriptor output stream.
|
virtual |
Writes bytes in buffer to stream.
buffer | The buffer containing the bytes to be written. |
size | The number of bytes to be written. |
Implements OutputStream.