Files
squeezelite-esp32/components/spotify/cspot/protos/AnyRefImpl.cpp
Philippe G 898998efb0 big merge
2021-12-18 21:04:23 -08:00

14 lines
425 B
C++

// THIS CORNFILE IS GENERATED. DO NOT EDIT! 🌽
#include "protobuf.h"
ReflectType *AnyRef::reflectType() {
return &reflectTypeInfo[static_cast<int>(this->typeID)];
}
AnyRef AnyRef::getField(int i) {
auto info = this->reflectType();
if(info->kind != ReflectTypeKind::Class) {
throw "not a class";
}
return AnyRef(info->fields[i].typeID, static_cast<char *>(this->value.voidptr) + info->fields[i].offset);
}