Lines Matching full:stream

1 //===-- Stream.cpp --------------------------------------------------------===//
9 #include "lldb/Utility/Stream.h"
27 Stream::Stream(uint32_t flags, uint32_t addr_size, ByteOrder byte_order, in Stream() function in Stream
32 Stream::Stream(bool colors) in Stream() function in Stream
37 Stream::~Stream() = default;
39 ByteOrder Stream::SetByteOrder(ByteOrder byte_order) { in SetByteOrder()
45 // Put an offset "uval" out to the stream using the printf format in "format".
46 void Stream::Offset(uint32_t uval, const char *format) { Printf(format, uval); } in Offset()
48 // Put an SLEB128 "uval" out to the stream using the printf format in "format".
49 size_t Stream::PutSLEB128(int64_t sval) { in PutSLEB128()
56 // Put an ULEB128 "uval" out to the stream using the printf format in "format".
57 size_t Stream::PutULEB128(uint64_t uval) { in PutULEB128()
64 // Print a raw NULL terminated C string to the stream.
65 size_t Stream::PutCString(llvm::StringRef str) { in PutCString()
75 void Stream::PutCStringColorHighlighted( in PutCStringColorHighlighted()
100 // Print a double quoted NULL terminated C string to the stream using the
102 void Stream::QuotedCString(const char *cstr, const char *format) { in QuotedCString()
106 // Put an address "addr" out to the stream with optional prefix and suffix
118 // Put an address range out to the stream with optional prefix and suffix
131 size_t Stream::PutChar(char ch) { return Write(&ch, 1); } in PutChar()
133 // Print some formatted output to the stream.
134 size_t Stream::Printf(const char *format, ...) { in Printf()
142 // Print some formatted output to the stream.
143 size_t Stream::PrintfVarArg(const char *format, va_list args) { in PrintfVarArg()
154 // Print and End of Line character to the stream
155 size_t Stream::EOL() { return PutChar('\n'); } in EOL()
157 size_t Stream::Indent(llvm::StringRef str) { in Indent()
163 // Stream a character "ch" out to this stream.
164 Stream &Stream::operator<<(char ch) { in operator <<()
169 // Stream the NULL terminated C string out to this stream.
170 Stream &Stream::operator<<(const char *s) { in operator <<()
175 Stream &Stream::operator<<(llvm::StringRef str) { in operator <<()
180 // Stream the pointer value out to this stream.
181 Stream &Stream::operator<<(const void *p) { in operator <<()
187 unsigned Stream::GetIndentLevel() const { return m_indent_level; } in GetIndentLevel()
190 void Stream::SetIndentLevel(unsigned indent_level) { in SetIndentLevel()
195 void Stream::IndentMore(unsigned amount) { m_indent_level += amount; } in IndentMore()
198 void Stream::IndentLess(unsigned amount) { in IndentLess()
206 uint32_t Stream::GetAddressByteSize() const { return m_addr_size; } in GetAddressByteSize()
209 void Stream::SetAddressByteSize(uint32_t addr_size) { m_addr_size = addr_size; } in SetAddressByteSize()
212 Flags &Stream::GetFlags() { return m_flags; } in GetFlags()
215 const Flags &Stream::GetFlags() const { return m_flags; } in GetFlags()
219 lldb::ByteOrder Stream::GetByteOrder() const { return m_byte_order; } in GetByteOrder()
221 size_t Stream::PrintfAsRawHex8(const char *format, ...) { in PrintfAsRawHex8()
237 size_t Stream::PutNHex8(size_t n, uint8_t uvalue) { in PutNHex8()
244 void Stream::_PutHex8(uint8_t uvalue, bool add_prefix) { in _PutHex8()
261 size_t Stream::PutHex8(uint8_t uvalue) { in PutHex8()
267 size_t Stream::PutHex16(uint16_t uvalue, ByteOrder byte_order) { in PutHex16()
283 size_t Stream::PutHex32(uint32_t uvalue, ByteOrder byte_order) { in PutHex32()
299 size_t Stream::PutHex64(uint64_t uvalue, ByteOrder byte_order) { in PutHex64()
315 size_t Stream::PutMaxHex64(uint64_t uvalue, size_t byte_size, in PutMaxHex64()
330 size_t Stream::PutPointer(void *ptr) { in PutPointer()
335 size_t Stream::PutFloat(float f, ByteOrder byte_order) { in PutFloat()
342 size_t Stream::PutDouble(double d, ByteOrder byte_order) { in PutDouble()
349 size_t Stream::PutLongDouble(long double ld, ByteOrder byte_order) { in PutLongDouble()
356 size_t Stream::PutRawBytes(const void *s, size_t src_len, in PutRawBytes()
383 size_t Stream::PutBytesAsRawHex8(const void *s, size_t src_len, in PutBytesAsRawHex8()
410 size_t Stream::PutStringAsRawHex8(llvm::StringRef s) { in PutStringAsRawHex8()