Base Framework
|
#include <base/io/MemoryOutputStream.h>
Inherits OutputStream.
Public Member Functions | |
MemoryOutputStream (MemorySize capacity=16 *1024) | |
void | swap (Allocator< uint8 > &buffer) |
void | flush () override |
unsigned int | write (const uint8 *src, unsigned int size, bool nonblocking) override |
void | close () override |
![]() | |
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 () | |
Memory output stream.
|
inlineoverridevirtual |
Closes the stream and releases any system resources associated with the stream.
Implements Stream.
|
inlineoverridevirtual |
Forces any buffered bytes to be written out.
Implements OutputStream.
|
overridevirtual |
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. |
Implements OutputStream.