mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-08 20:47:08 +03:00
14 lines
425 B
C++
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);
|
|
}
|