class raw_counting_ostream
Declaration
class raw_counting_ostream : public raw_ostream { /* full declaration omitted */ };
Description
This class implements an extremely fast bulk output stream that can *only* output to a stream. It does not support seeking, reopening, rewinding, line buffered disciplines etc. It is a simple buffer that outputs a chunk at a time.
Declared at: llvm/lib/MC/MCLinkerOptimizationHint.cpp:44
Inherits from: raw_ostream
Member Variables
- private uint64_t Count = 0
Inherited from raw_ostream:
- public static BLACK = Colors::BLACK
- public static RED = Colors::RED
- public static GREEN = Colors::GREEN
- public static YELLOW = Colors::YELLOW
- public static BLUE = Colors::BLUE
- public static MAGENTA = Colors::MAGENTA
- public static CYAN = Colors::CYAN
- public static WHITE = Colors::WHITE
- public static SAVEDCOLOR = Colors::SAVEDCOLOR
- public static RESET = Colors::RESET
Method Overview
- private uint64_t current_pos() const
- public raw_counting_ostream()
- private void write_impl(const char *, size_t size)
- public ~raw_counting_ostream()
Inherited from raw_ostream:
- public GetBufferSize
- public GetNumBytesInBuffer
- protected SetBuffer
- public SetBufferSize
- public SetBuffered
- public SetUnbuffered
- public changeColor
- public colors_enabled
- public enable_colors
- public flush
- protected getBufferStart
- public get_kind
- public has_colors
- public indent
- public is_displayed
- protected preferred_buffer_size
- public reserveExtraSpace
- public resetColor
- public reverseColor
- public tell
- public tie
- public write
- public write
- public write_escaped
- public write_hex
- public write_uuid
- public write_zeros
Methods
¶uint64_t current_pos() const
uint64_t current_pos() const
Description
Return the current position within the stream, not counting the bytes currently in the buffer.
Declared at: llvm/lib/MC/MCLinkerOptimizationHint.cpp:49
¶raw_counting_ostream()
raw_counting_ostream()
Declared at: llvm/lib/MC/MCLinkerOptimizationHint.cpp:52
¶void write_impl(const char*, size_t size)
void write_impl(const char*, size_t size)
Description
The is the piece of the class that is implemented by subclasses. This writes the \p Size bytes starting at\p Ptr to the underlying stream. This function is guaranteed to only be called at a point at which it is safe for the subclass to install a new buffer via SetBuffer.
Declared at: llvm/lib/MC/MCLinkerOptimizationHint.cpp:47
Parameters
- const char*
- size_t size
¶~raw_counting_ostream()
~raw_counting_ostream()
Declared at: llvm/lib/MC/MCLinkerOptimizationHint.cpp:53