LLVM 23.0.0git
DXContainer.cpp File Reference

Go to the source code of this file.

Classes

class  DXNotSupportedError

Functions

static Error parseFailed (const Twine &Msg)
static bool readIsOutOfBounds (StringRef Buffer, const char *Src, size_t Size)
template<typename T>
static Error readStruct (StringRef Buffer, const char *Src, T &Struct)
template<typename T>
static Error readInteger (StringRef Buffer, const char *Src, T &Val, Twine Str="structure")
static Error readString (StringRef Buffer, const char *&Src, size_t MaxSize, StringRef &Val, Twine Desc)

Function Documentation

◆ parseFailed()

Error parseFailed ( const Twine & Msg)
static

◆ readInteger()

template<typename T>
Error readInteger ( StringRef Buffer,
const char * Src,
T & Val,
Twine Str = "structure" )
static

◆ readIsOutOfBounds()

bool readIsOutOfBounds ( StringRef Buffer,
const char * Src,
size_t Size )
static

Definition at line 23 of file DXContainer.cpp.

References llvm::StringRef::begin(), llvm::StringRef::end(), and Size.

Referenced by readInteger(), readString(), and readStruct().

◆ readString()

Error readString ( StringRef Buffer,
const char *& Src,
size_t MaxSize,
StringRef & Val,
Twine Desc )
static

◆ readStruct()

template<typename T>
Error readStruct ( StringRef Buffer,
const char * Src,
T & Struct )
static