LLVM 19.0.0git
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"

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

endianness Endian

Detailed Description

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

Definition at line 67 of file EndianStream.h.

Constructor & Destructor Documentation

◆ Writer()

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

Definition at line 70 of file EndianStream.h.

Member Function Documentation

◆ write() [1/2]

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

◆ write() [2/2]

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

Definition at line 74 of file EndianStream.h.

References Endian, OS, and llvm::support::endian::write().

Member Data Documentation

◆ Endian

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

◆ OS

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

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