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

Function LoadEnumRaw

cpp/src/parquet/thrift_internal.h:170–175  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 2

LoadRawMethod · 0.85
LoadEnumSafeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected