llvm/lldb/tools/lldb-dap/IOStream.cpp

//===-- IOStream.cpp --------------------------------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//

#include "IOStream.h"

#if defined(_WIN32)
#include <io.h>
#else
#include <netinet/in.h>
#include <sys/socket.h>
#include <unistd.h>
#endif

#include <fstream>
#include <string>
#include <vector>

usingnamespacelldb_dap;

StreamDescriptor::StreamDescriptor() = default;

StreamDescriptor::StreamDescriptor(StreamDescriptor &&other) {}

StreamDescriptor::~StreamDescriptor() {}

StreamDescriptor &StreamDescriptor::operator=(StreamDescriptor &&other) {}

StreamDescriptor StreamDescriptor::from_socket(SOCKET s, bool close) {}

StreamDescriptor StreamDescriptor::from_file(int fd, bool close) {}

bool OutputStream::write_full(llvm::StringRef str) {}

bool InputStream::read_full(std::ofstream *log, size_t length,
                            std::string &text) {}

bool InputStream::read_line(std::ofstream *log, std::string &line) {}

bool InputStream::read_expected(std::ofstream *log, llvm::StringRef expected) {}