9#ifndef LLDB_CORE_STREAMBUFFER_H
10#define LLDB_CORE_STREAMBUFFER_H
13#include "llvm/ADT/SmallVector.h"
45 size_t WriteImpl(
const void *s,
size_t length)
override {
47 m_packet.append((
const char *)s, ((
const char *)s) + length);
void Flush() override
Flush the stream.
llvm::SmallVector< char, N > m_packet
~StreamBuffer() override=default
size_t WriteImpl(const void *s, size_t length) override
Output character bytes to the stream.
StreamBuffer(uint32_t flags, uint32_t addr_size, lldb::ByteOrder byte_order)
const char * GetData() const
A stream class that can stream formatted output to a file.
A class that represents a running process on the host machine.
ByteOrder
Byte ordering definitions.