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

Inherited from raw_ostream:

Methods

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()

Declared at: llvm/lib/MC/MCLinkerOptimizationHint.cpp:52

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()

Declared at: llvm/lib/MC/MCLinkerOptimizationHint.cpp:53