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

Function LoadEnumRaw

cpp/src/parquet/thrift_internal.h:171–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 2

LoadRawMethod · 0.85
LoadEnumSafeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected