Base Framework
|
File descriptor input stream. More...
#include <base/io/FileDescriptorInputStream.h>
Inherits InputStream, and FileDescriptor.
Public Member Functions | |
FileDescriptorInputStream () noexcept | |
FileDescriptorInputStream (const FileDescriptor &fd) noexcept | |
FileDescriptorInputStream (const FileDescriptorInputStream ©) noexcept | |
FileDescriptorInputStream & | operator= (const FileDescriptorInputStream &assign) noexcept |
void | close () |
bool | atEnd () const |
unsigned int | available () const |
unsigned int | read (uint8 *buffer, unsigned int size, bool nonblocking=false) |
unsigned int | skip (unsigned int count) |
void | setNonBlocking (bool value) |
void | wait () const |
bool | wait (unsigned int timeout) const |
~FileDescriptorInputStream () | |
![]() | |
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 |
|
noexcept |
Initializes file descriptor input stream as invalid.
|
noexcept |
Initializes file descriptor input stream from a file descriptor.
fd | The file descriptor. |
|
noexcept |
Initializes file descriptor input stream from other file descriptor input stream.
FileDescriptorInputStream::~FileDescriptorInputStream | ( | ) |
Releases the file descriptor.
|
inline |
Returns true if the end of the file descriptor has been reached.
|
virtual |
Returns the number of bytes that can be read or skipped over without blocking.
Implements InputStream.
|
inlinevirtual |
Closes the stream and releases any system resources associated with the stream.
Reimplemented from FileDescriptor.
|
noexcept |
Assignment of file descriptor input stream to this file descriptor input stream.
|
virtual |
Fills the buffer with bytes from the stream. Blocks if asked to read more bytes than available.
buffer | The buffer. |
size | The size of the buffer. |
Implements InputStream.
void FileDescriptorInputStream::setNonBlocking | ( | bool | value | ) |
Sets the non-blocking flag of the file descriptor.
|
virtual |
Skips a specified number of bytes. Blocks if asked to skip more bytes than available.
count | The number of bytes to skip. |
Implements InputStream.
|
virtual |
Blocking wait for input to become available.
Implements InputStream.
|
virtual |
Blocking wait for input to become available.
timeout | The timeout periode in microseconds. |
Implements InputStream.