1 //===-- StreamAsynchronousIO.h -----------------------------------*- C++-*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef liblldb_StreamAsynchronousIO_h_
11 #define liblldb_StreamAsynchronousIO_h_
13 #include "lldb/Utility/Stream.h"
17 #include <stddef.h> // for size_t
19 namespace lldb_private {
23 namespace lldb_private {
25 class StreamAsynchronousIO : public Stream {
27 StreamAsynchronousIO(Debugger &debugger, bool for_stdout);
29 ~StreamAsynchronousIO() override;
31 void Flush() override;
33 size_t Write(const void *src, size_t src_len) override;
41 } // namespace lldb_private
43 #endif // liblldb_StreamAsynchronousIO_h