| //////////////////////////////////////////////////////////////////////////////// |
| // Do not modify! |
| // Generated by codergen |
| //////////////////////////////////////////////////////////////////////////////// |
| |
| |
| |
| #include "core.h" |
| #include <gapic/schema.h> |
| namespace gapic { |
| |
| class Encodable; |
| class Encoder; |
| |
| namespace coder { |
| namespace core { |
| // Architecture: |
| // core.Architecture{[]?,Uint32,Uint32,Uint32,Bool} |
| void Architecture::Encode(Encoder* e) const { |
| e->Uint32(this->mextras.count()); |
| for (auto v : this->mextras) { |
| e->Object(v); |
| } |
| e->Uint32(this->mPointerAlignment); |
| e->Uint32(this->mPointerSize); |
| e->Uint32(this->mIntegerSize); |
| e->Bool(this->mLittleEndian); |
| } |
| const schema::Entity* Architecture::StaticSchema() { |
| static schema::Entity entity { |
| "core", |
| "", |
| "Architecture", |
| "", |
| { |
| schema::Field{"extras", new schema::Slice{"atom.Extras", new schema::Interface{"atom.Extra"}}}, |
| schema::Field{"PointerAlignment", new schema::Primitive{"uint32", schema::Primitive::Uint32}}, |
| schema::Field{"PointerSize", new schema::Primitive{"uint32", schema::Primitive::Uint32}}, |
| schema::Field{"IntegerSize", new schema::Primitive{"uint32", schema::Primitive::Uint32}}, |
| schema::Field{"LittleEndian", new schema::Primitive{"bool", schema::Primitive::Bool}}, |
| }, |
| }; |
| return &entity; |
| } |
| |
| // SwitchThread: |
| // core.SwitchThread{[]?,Uint64} |
| const schema::Entity* SwitchThread::StaticSchema() { |
| static schema::Entity entity { |
| "core", |
| "", |
| "SwitchThread", |
| "", |
| { |
| schema::Field{"extras", new schema::Slice{"atom.Extras", new schema::Interface{"atom.Extra"}}}, |
| schema::Field{"ThreadID", new schema::Primitive{"ThreadID", schema::Primitive::Uint64}}, |
| }, |
| }; |
| return &entity; |
| } |
| |
| |
| |
| } // namespace core |
| } // namespace coder |
| } // namespace gapic |
| |