class raw_fd_stream
Declaration
class raw_fd_stream : public raw_fd_ostream { /* full declaration omitted */ };
Description
A raw_ostream of a file for reading/writing/seeking.
Declared at: llvm/include/llvm/Support/raw_ostream.h:601
Inherits from: raw_fd_ostream
Member Variables
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
- public static bool classof(const llvm::raw_ostream * OS)
- public raw_fd_stream(llvm::StringRef Filename, std::error_code & EC)
- public ssize_t read(char * Ptr, size_t Size)
Inherited from raw_fd_ostream:
- public clear_error
- public close
- public error
- protected error_detected
- protected get_fd
- public has_colors
- public has_error
- protected inc_pos
- public isRegularFile
- public is_displayed
- public lock
- public seek
- public supportsSeeking
- public tryLockFor
Inherited from raw_pwrite_stream:
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
¶static bool classof(const llvm::raw_ostream* OS)
static bool classof(const llvm::raw_ostream* OS)
Description
Check if \p OS is a pointer of type raw_fd_stream*.
Declared at: llvm/include/llvm/Support/raw_ostream.h:620
Parameters
- const llvm::raw_ostream* OS
¶raw_fd_stream(llvm::StringRef Filename,
std::error_code& EC)
raw_fd_stream(llvm::StringRef Filename,
std::error_code& EC)
Description
Open the specified file for reading/writing/seeking. If an error occurs, information about the error is put into EC, and the stream should be immediately destroyed.
Declared at: llvm/include/llvm/Support/raw_ostream.h:606
Parameters
- llvm::StringRef Filename
- std::error_code& EC
¶ssize_t read(char* Ptr, size_t Size)
ssize_t read(char* Ptr, size_t Size)
Description
This reads the \p Size bytes into a buffer pointed by \p Ptr. On success, the number of bytes read is returned, and the file position is advanced by this number. On error, -1 is returned, use error() to get the error code.
Declared at: llvm/include/llvm/Support/raw_ostream.h:617
Parameters
- char* Ptr
- The start of the buffer to hold data to be read.
- size_t Size
- The number of bytes to be read.