18template <
typename StructT>
20 static_assert(std::is_class<StructT>() &&
21 "This method must be used for writing structure types");
24 OS.
write(
reinterpret_cast<const char *
>(&S),
sizeof(StructT));
static void writeString(raw_ostream &OS, StringRef S)
static void writeStruct(raw_ostream &OS, StructT S)
Represent a constant reference to a string, i.e.
constexpr size_t size() const
Get the string size.
constexpr const char * data() const
Get a pointer to the start of the string (which may not be null terminated).
This class implements an extremely fast bulk output stream that can only output to a stream.
raw_ostream & write_zeros(unsigned NumZeros)
write_zeros - Insert 'NumZeros' nulls.
raw_ostream & write(unsigned char C)
constexpr bool IsBigEndianHost
This is an optimization pass for GlobalISel generic memory operations.
object::DXContainer::ILDNData BaseData
void setFileName(StringRef FileName)
void write(raw_ostream &OS) const