3 #ifndef INCLUDE_NN_NLIB_CONSOLEOUTPUTSTREAM_H_
4 #define INCLUDE_NN_NLIB_CONSOLEOUTPUTSTREAM_H_
11 static const size_t kBufSize = 512;
12 char m_Buf[kBufSize + 1];
17 bool result = this->
Close();
22 virtual bool PushBuffer_(
const void* p,
size_t nBytes,
29 #endif // INCLUDE_NN_NLIB_CONSOLEOUTPUTSTREAM_H_
#define NLIB_NOEXCEPT
Defines noexcept geared to the environment, or the equivalent.
The class for creating a stream to output to the console as a text string using nlib_printf.
bool Flush() noexcept
Flushes the stream.
#define NLIB_FINAL
Defines final if it is available for use. If not, holds an empty string.
#define NLIB_OVERRIDE
Defines override if it is available for use. If not, holds an empty string.
bool Close() noexcept
Closes the stream after it has been flushed. Returns true if successful.
Defines the base class for output streams.
The base class for output streams. This class cannot be instantiated.