| 719 | } |
| 720 | |
| 721 | inline flatbuffers::Offset<BytecodeFile> CreateBytecodeFileDirect( |
| 722 | flatbuffers::FlatBufferBuilder &_fbb, |
| 723 | int32_t bytecode_version = 0, |
| 724 | const std::vector<int32_t> *bytecode = nullptr, |
| 725 | const std::vector<uint8_t> *bytecode_attr = nullptr, |
| 726 | const std::vector<int32_t> *typetable = nullptr, |
| 727 | const std::vector<flatbuffers::Offset<flatbuffers::String>> *stringtable = nullptr, |
| 728 | const std::vector<LineInfo> *lineinfo = nullptr, |
| 729 | const std::vector<flatbuffers::Offset<flatbuffers::String>> *filenames = nullptr, |
| 730 | const std::vector<flatbuffers::Offset<Function>> *functions = nullptr, |
| 731 | const std::vector<flatbuffers::Offset<UDT>> *udts = nullptr, |
| 732 | const std::vector<flatbuffers::Offset<Ident>> *idents = nullptr, |
| 733 | const std::vector<SpecIdent> *specidents = nullptr, |
| 734 | const std::vector<int32_t> *default_int_vector_types = nullptr, |
| 735 | const std::vector<int32_t> *default_float_vector_types = nullptr, |
| 736 | const std::vector<int32_t> *logvars = nullptr, |
| 737 | const std::vector<flatbuffers::Offset<Enum>> *enums = nullptr, |
| 738 | const std::vector<int32_t> *vtables = nullptr) { |
| 739 | return bytecode::CreateBytecodeFile( |
| 740 | _fbb, |
| 741 | bytecode_version, |
| 742 | bytecode ? _fbb.CreateVector<int32_t>(*bytecode) : 0, |
| 743 | bytecode_attr ? _fbb.CreateVector<uint8_t>(*bytecode_attr) : 0, |
| 744 | typetable ? _fbb.CreateVector<int32_t>(*typetable) : 0, |
| 745 | stringtable ? _fbb.CreateVector<flatbuffers::Offset<flatbuffers::String>>(*stringtable) : 0, |
| 746 | lineinfo ? _fbb.CreateVectorOfStructs<LineInfo>(*lineinfo) : 0, |
| 747 | filenames ? _fbb.CreateVector<flatbuffers::Offset<flatbuffers::String>>(*filenames) : 0, |
| 748 | functions ? _fbb.CreateVector<flatbuffers::Offset<Function>>(*functions) : 0, |
| 749 | udts ? _fbb.CreateVector<flatbuffers::Offset<UDT>>(*udts) : 0, |
| 750 | idents ? _fbb.CreateVector<flatbuffers::Offset<Ident>>(*idents) : 0, |
| 751 | specidents ? _fbb.CreateVectorOfStructs<SpecIdent>(*specidents) : 0, |
| 752 | default_int_vector_types ? _fbb.CreateVector<int32_t>(*default_int_vector_types) : 0, |
| 753 | default_float_vector_types ? _fbb.CreateVector<int32_t>(*default_float_vector_types) : 0, |
| 754 | logvars ? _fbb.CreateVector<int32_t>(*logvars) : 0, |
| 755 | enums ? _fbb.CreateVector<flatbuffers::Offset<Enum>>(*enums) : 0, |
| 756 | vtables ? _fbb.CreateVector<int32_t>(*vtables) : 0); |
| 757 | } |
| 758 | |
| 759 | inline const bytecode::BytecodeFile *GetBytecodeFile(const void *buf) { |
| 760 | return flatbuffers::GetRoot<bytecode::BytecodeFile>(buf); |
nothing calls this directly
no test coverage detected