Opens a file for a binary write.
#include <AUI/IO/AFileOutputStream.h>
|
|
| AFileOutputStream (AString path, bool append=false) |
| |
| void | write (const char *src, size_t size) override |
| | Writes exact size bytes to stream. Blocking (waiting for write all data) is allowed.
|
| |
|
void | close () |
| |
|
void | open (bool append=false) |
| |
|
| AFileOutputStream (AFileOutputStream &&rhs) noexcept |
| |
|
AFileOutputStream & | operator= (AFileOutputStream &&rhs) noexcept |
| |
|
FILE * | nativeHandle () const |
| |
|
const AString & | path () const |
| |
| template<typename T> |
| void | write (const T &t) |
| |
| template<typename T> |
| IOutputStream & | operator<< (const T &t) |
| |
◆ write()#
| void AFileOutputStream::write |
( |
const char * | src, |
|
|
size_t | size ) |
|
overridevirtual |
- Sneaky exceptions
- An implementation can throw any exception that subclasses AIOException.
- Parameters
-
| src | source buffer |
| size | source buffer's size. > 0 |
Implements IOutputStream.