mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-10 21:47:04 +03:00
big merge
This commit is contained in:
13
components/spotify/cspot/protos/AnyRefImpl.cpp
Normal file
13
components/spotify/cspot/protos/AnyRefImpl.cpp
Normal file
@@ -0,0 +1,13 @@
|
||||
// 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);
|
||||
}
|
||||
Reference in New Issue
Block a user