#include "lldb/Utility/Stream.h"
#include "lldb/Utility/AnsiTerminal.h"
#include "lldb/Utility/Endian.h"
#include "lldb/Utility/VASPrintf.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/Support/Format.h"
#include "llvm/Support/LEB128.h"
#include "llvm/Support/Regex.h"
#include <string>
#include <cinttypes>
#include <cstddef>
usingnamespacelldb;
usingnamespacelldb_private;
Stream::Stream(uint32_t flags, uint32_t addr_size, ByteOrder byte_order,
bool colors)
: … { … }
Stream::Stream(bool colors)
: … { … }
Stream::~Stream() = default;
ByteOrder Stream::SetByteOrder(ByteOrder byte_order) { … }
void Stream::Offset(uint32_t uval, const char *format) { … }
size_t Stream::PutSLEB128(int64_t sval) { … }
size_t Stream::PutULEB128(uint64_t uval) { … }
size_t Stream::PutCString(llvm::StringRef str) { … }
void Stream::PutCStringColorHighlighted(
llvm::StringRef text, std::optional<HighlightSettings> pattern_info) { … }
void Stream::QuotedCString(const char *cstr, const char *format) { … }
void lldb_private::DumpAddress(llvm::raw_ostream &s, uint64_t addr,
uint32_t addr_size, const char *prefix,
const char *suffix) { … }
void lldb_private::DumpAddressRange(llvm::raw_ostream &s, uint64_t lo_addr,
uint64_t hi_addr, uint32_t addr_size,
const char *prefix, const char *suffix) { … }
size_t Stream::PutChar(char ch) { … }
size_t Stream::Printf(const char *format, ...) { … }
size_t Stream::PrintfVarArg(const char *format, va_list args) { … }
size_t Stream::EOL() { … }
size_t Stream::Indent(llvm::StringRef str) { … }
Stream &Stream::operator<<(char ch) { … }
Stream &Stream::operator<<(const char *s) { … }
Stream &Stream::operator<<(llvm::StringRef str) { … }
Stream &Stream::operator<<(const void *p) { … }
unsigned Stream::GetIndentLevel() const { … }
void Stream::SetIndentLevel(unsigned indent_level) { … }
void Stream::IndentMore(unsigned amount) { … }
void Stream::IndentLess(unsigned amount) { … }
uint32_t Stream::GetAddressByteSize() const { … }
void Stream::SetAddressByteSize(uint32_t addr_size) { … }
Flags &Stream::GetFlags() { … }
const Flags &Stream::GetFlags() const { … }
lldb::ByteOrder Stream::GetByteOrder() const { … }
size_t Stream::PrintfAsRawHex8(const char *format, ...) { … }
size_t Stream::PutNHex8(size_t n, uint8_t uvalue) { … }
void Stream::_PutHex8(uint8_t uvalue, bool add_prefix) { … }
size_t Stream::PutHex8(uint8_t uvalue) { … }
size_t Stream::PutHex16(uint16_t uvalue, ByteOrder byte_order) { … }
size_t Stream::PutHex32(uint32_t uvalue, ByteOrder byte_order) { … }
size_t Stream::PutHex64(uint64_t uvalue, ByteOrder byte_order) { … }
size_t Stream::PutMaxHex64(uint64_t uvalue, size_t byte_size,
lldb::ByteOrder byte_order) { … }
size_t Stream::PutPointer(void *ptr) { … }
size_t Stream::PutFloat(float f, ByteOrder byte_order) { … }
size_t Stream::PutDouble(double d, ByteOrder byte_order) { … }
size_t Stream::PutLongDouble(long double ld, ByteOrder byte_order) { … }
size_t Stream::PutRawBytes(const void *s, size_t src_len,
ByteOrder src_byte_order, ByteOrder dst_byte_order) { … }
size_t Stream::PutBytesAsRawHex8(const void *s, size_t src_len,
ByteOrder src_byte_order,
ByteOrder dst_byte_order) { … }
size_t Stream::PutStringAsRawHex8(llvm::StringRef s) { … }