8 #ifndef WPIUTIL_WPI_RAW_SOCKET_OSTREAM_H_
9 #define WPIUTIL_WPI_RAW_SOCKET_OSTREAM_H_
11 #include "wpi/raw_ostream.h"
20 : m_stream(stream), m_shouldClose(shouldClose) {}
25 bool has_error()
const {
return m_error; }
26 void clear_error() { m_error =
false; }
29 void error_detected() { m_error =
true; }
32 void write_impl(
const char* data,
size_t len)
override;
33 uint64_t current_pos()
const override;
42 #endif // WPIUTIL_WPI_RAW_SOCKET_OSTREAM_H_
This class implements an extremely fast bulk output stream that can only output to a stream...
Definition: raw_ostream.h:45
Definition: NetworkStream.h:17
WPILib C++ utilities (wpiutil) namespace.
Definition: SmallString.h:21
Definition: raw_socket_ostream.h:17