3 #ifndef INCLUDE_NN_NLIB_CONSOLEOUTPUTSTREAM_H_ 4 #define INCLUDE_NN_NLIB_CONSOLEOUTPUTSTREAM_H_ 11 static const size_t kBufSize = 512;
12 char cos_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_ 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_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.
#define NLIB_NOEXCEPT
Defines noexcept geared to the environment, or the equivalent.
#define NLIB_FINAL
Defines final if it is available for use. If not, holds an empty string.
Defines the base class for output streams.
The base class for output streams. This class cannot be instantiated.