MCPcopy Create free account
hub / github.com/NVIDIA/cuda-tile / readLE

Method readLE

lib/Bytecode/Reader/BytecodeReader.cpp:127–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125
126 template <typename T>
127 std::enable_if_t<std::is_integral<T>::value, LogicalResult> readLE(T &value) {
128 if (offset + sizeof(T) > data.size())
129 return failure();
130 value = 0;
131 for (size_t i = 0; i < sizeof(T); ++i)
132 value |= static_cast<T>(data[offset++]) << (8 * i);
133 return success();
134 }
135
136 template <typename T>
137 std::enable_if_t<std::is_integral<T>::value, T> readLE() {

Callers 7

parseHeaderFunction · 0.80
parseSectionHeaderFunction · 0.80
parseAPIntMethod · 0.80
parseDivByAttrMethod · 0.80
parseOpAttributeMethod · 0.80

Calls 2

maxFunction · 0.85
sizeMethod · 0.80

Tested by

no test coverage detected