LLVM  8.0.1
Public Member Functions | Public Attributes | List of all members
llvm::support::endian::Writer Struct Reference

Adapter to write values to a stream in a particular byte order. More...

#include "llvm/Support/EndianStream.h"

Collaboration diagram for llvm::support::endian::Writer:
Collaboration graph
[legend]

Public Member Functions

 Writer (raw_ostream &OS, endianness Endian)
 
template<typename value_type >
void write (ArrayRef< value_type > Val)
 
template<typename value_type >
void write (value_type Val)
 

Public Attributes

raw_ostreamOS
 
endianness Endian
 

Detailed Description

Adapter to write values to a stream in a particular byte order.

Definition at line 52 of file EndianStream.h.

Constructor & Destructor Documentation

◆ Writer()

llvm::support::endian::Writer::Writer ( raw_ostream OS,
endianness  Endian 
)
inline

Definition at line 55 of file EndianStream.h.

Member Function Documentation

◆ write() [1/2]

template<typename value_type >
void llvm::support::endian::Writer::write ( ArrayRef< value_type >  Val)
inline

◆ write() [2/2]

template<typename value_type >
void llvm::support::endian::Writer::write ( value_type  Val)
inline

Definition at line 59 of file EndianStream.h.

References llvm::support::endian::write().

Member Data Documentation

◆ Endian

endianness llvm::support::endian::Writer::Endian

Definition at line 54 of file EndianStream.h.

Referenced by llvm::MachObjectWriter::computeSymbolTable().

◆ OS

raw_ostream& llvm::support::endian::Writer::OS

The documentation for this struct was generated from the following file: