MCPcopy Create free account
hub / github.com/apache/arrow / LoadEnumRaw

Function LoadEnumRaw

cpp/src/parquet/thrift_internal.h:172–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

170template <typename EnumType,
171 typename EnumTypeRaw = typename std::underlying_type<EnumType>::type>
172inline static EnumTypeRaw LoadEnumRaw(const EnumType* in) {
173 EnumTypeRaw raw_value;
174 // Use memcpy(), as a regular cast would be undefined behaviour on invalid values
175 memcpy(&raw_value, in, sizeof(EnumType));
176 return raw_value;
177}
178
179template <typename ApiType>
180struct SafeLoader {

Callers 2

LoadRawMethod · 0.85
LoadEnumSafeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected