Searched refs:vectortype (Results 1 – 10 of 10) sorted by relevance
/third_party/flatbuffers/src/ |
D | idl_gen_swift.cpp | 619 auto vectortype = field.value.type.VectorType(); in GenTableWriterFields() local 621 if ((vectortype.base_type == BASE_TYPE_STRUCT && in GenTableWriterFields() 624 auto field_name = NameWrappedInNameSpace(*vectortype.struct_def); in GenTableWriterFields() 744 auto vectortype = field.value.type.VectorType(); in GenTableReaderVectorFields() local 745 code_.SetValue("SIZE", NumToString(InlineSize(vectortype))); in GenTableReaderVectorFields() 749 IsScalar(vectortype.base_type) == true ? "0" : "nil"); in GenTableReaderVectorFields() 750 auto nullable = IsScalar(vectortype.base_type) == true ? "" : "?"; in GenTableReaderVectorFields() 751 nullable = IsEnum(vectortype) == true ? "?" : nullable; in GenTableReaderVectorFields() 753 if (vectortype.base_type != BASE_TYPE_UNION) { in GenTableReaderVectorFields() 763 if (IsBool(vectortype.base_type)) { in GenTableReaderVectorFields() [all …]
|
D | idl_gen_lobster.cpp | 144 auto vectortype = field.value.type.VectorType(); in GenStructAccessor() local 146 if (vectortype.base_type == BASE_TYPE_STRUCT) { in GenStructAccessor() 148 ") + i * " + NumToString(InlineSize(vectortype)); in GenStructAccessor() 149 if (!(vectortype.struct_def->fixed)) { in GenStructAccessor() 155 if (IsString(vectortype)) in GenStructAccessor() 158 code += "buf_.read_" + GenTypeName(vectortype) + "_le"; in GenStructAccessor() 160 ") + i * " + NumToString(InlineSize(vectortype)) + ")\n"; in GenStructAccessor()
|
D | idl_gen_php.cpp | 331 auto vectortype = field.value.type.VectorType(); in GetMemberOfVectorOfStruct() local 364 if (vectortype.base_type == BASE_TYPE_STRUCT) { in GetMemberOfVectorOfStruct() 366 if (vectortype.struct_def->fixed) { in GetMemberOfVectorOfStruct() 368 code += NumToString(InlineSize(vectortype)); in GetMemberOfVectorOfStruct() 371 code += NumToString(InlineSize(vectortype)) + ")"; in GetMemberOfVectorOfStruct() 391 auto vectortype = field.value.type.VectorType(); in GetMemberOfVectorOfNonStruct() local 407 code += NumToString(InlineSize(vectortype)) + ") : "; in GetMemberOfVectorOfNonStruct() 413 code += NumToString(InlineSize(vectortype)) + ") : "; in GetMemberOfVectorOfNonStruct() 423 auto vectortype = field.value.type.VectorType(); in GetMemberOfVectorOfUnion() local 437 code += NumToString(InlineSize(vectortype)) + " - $this->bb_pos) : null;\n"; in GetMemberOfVectorOfUnion() [all …]
|
D | idl_gen_lua.cpp | 292 auto vectortype = field.value.type.VectorType(); in GetMemberOfVectorOfStruct() local 301 code += NumToString(InlineSize(vectortype)) + ")\n"; in GetMemberOfVectorOfStruct() 302 if (!(vectortype.struct_def->fixed)) { in GetMemberOfVectorOfStruct() 321 auto vectortype = field.value.type.VectorType(); in GetMemberOfVectorOfNonStruct() local 332 code += NumToString(InlineSize(vectortype)) + "))\n"; in GetMemberOfVectorOfNonStruct() 334 if (IsString(vectortype)) { in GetMemberOfVectorOfNonStruct() 509 auto vectortype = field.value.type.VectorType(); in GenStructAccessor() local 510 if (vectortype.base_type == BASE_TYPE_STRUCT) { in GenStructAccessor() 514 if (vectortype.base_type == BASE_TYPE_CHAR || in GenStructAccessor() 515 vectortype.base_type == BASE_TYPE_UCHAR) { in GenStructAccessor()
|
D | idl_gen_ts.cpp | 858 auto vectortype = field.value.type.VectorType(); in GenObjApi() local 860 GenTypeName(imports, struct_def, vectortype, false); in GenObjApi() 865 switch (vectortype.base_type) { in GenObjApi() 906 *(vectortype.enum_def)); in GenObjApi() 909 GenUnionValTS(imports, field_name, vectortype, true); in GenObjApi() 920 if (vectortype.enum_def) { in GenObjApi() 921 field_type += GenTypeName(imports, struct_def, vectortype, in GenObjApi() 1166 auto vectortype = field.value.type.VectorType(); in GenStruct() local 1168 GenTypeName(imports, struct_def, vectortype, false); in GenStruct() 1169 auto inline_size = InlineSize(vectortype); in GenStruct() [all …]
|
D | idl_gen_python.cpp | 340 auto vectortype = field.value.type.VectorType(); in GetMemberOfVectorOfStruct() local 348 code += NumToString(InlineSize(vectortype)) + "\n"; in GetMemberOfVectorOfStruct() 349 if (!(vectortype.struct_def->fixed)) { in GetMemberOfVectorOfStruct() 369 auto vectortype = field.value.type.VectorType(); in GetMemberOfVectorOfNonStruct() local 379 code += NumToString(InlineSize(vectortype)) + "))\n"; in GetMemberOfVectorOfNonStruct() 380 if (IsString(vectortype)) { in GetMemberOfVectorOfNonStruct() 394 auto vectortype = field.value.type.VectorType(); in GetVectorOfNonStructAsNumpy() local 398 if (!(IsScalar(vectortype.base_type))) { return; } in GetVectorOfNonStructAsNumpy() 410 if (IsString(vectortype)) { in GetVectorOfNonStructAsNumpy() 718 auto vectortype = field.value.type.VectorType(); in GenStructAccessor() local [all …]
|
D | idl_gen_go.cpp | 438 auto vectortype = field.value.type.VectorType(); in GetMemberOfVectorOfStruct() local 446 code += NumToString(InlineSize(vectortype)) + "\n"; in GetMemberOfVectorOfStruct() 447 if (!(vectortype.struct_def->fixed)) { in GetMemberOfVectorOfStruct() 461 auto vectortype = field.value.type.VectorType(); in GetMemberOfVectorOfNonStruct() local 472 NumToString(InlineSize(vectortype)) + "))"); in GetMemberOfVectorOfNonStruct() 474 if (IsString(vectortype)) { in GetMemberOfVectorOfNonStruct() 476 } else if (vectortype.base_type == BASE_TYPE_BOOL) { in GetMemberOfVectorOfNonStruct() 644 auto vectortype = field.value.type.VectorType(); in GenStructAccessor() local 645 if (vectortype.base_type == BASE_TYPE_STRUCT) { in GenStructAccessor() 697 auto vectortype = field.value.type.VectorType(); in MutateElementOfVectorOfNonStruct() local [all …]
|
D | idl_gen_java.cpp | 724 auto vectortype = field.value.type.VectorType(); in GenStruct() local 726 if (vectortype.base_type == BASE_TYPE_STRUCT) { in GenStruct() 729 } else if (vectortype.base_type == BASE_TYPE_UNION) { in GenStruct() 734 if (vectortype.base_type == BASE_TYPE_UNION) { in GenStruct() 745 index += "j * " + NumToString(InlineSize(vectortype)); in GenStruct() 746 if (vectortype.base_type == BASE_TYPE_STRUCT) { in GenStruct() 747 code += vectortype.struct_def->fixed in GenStruct() 839 auto vectortype = field.value.type.VectorType(); in GenStruct() local 840 code += NumToString(InlineSize(vectortype)) + ", "; in GenStruct()
|
D | idl_gen_csharp.cpp | 703 auto vectortype = field.value.type.VectorType(); in GenStruct() local 704 if (vectortype.base_type == BASE_TYPE_UNION) { in GenStruct() 709 if (vectortype.base_type == BASE_TYPE_STRUCT) { in GenStruct() 711 } else if (vectortype.base_type == BASE_TYPE_UNION) { in GenStruct() 715 if (vectortype.base_type == BASE_TYPE_UNION) { in GenStruct() 726 index += "j * " + NumToString(InlineSize(vectortype)); in GenStruct() 727 if (vectortype.base_type == BASE_TYPE_STRUCT) { in GenStruct() 728 code += vectortype.struct_def->fixed in GenStruct() 744 if (vectortype.base_type == BASE_TYPE_UNION && in GenStruct() 745 HasUnionStringValue(*vectortype.enum_def)) { in GenStruct()
|
D | idl_gen_kotlin.cpp | 992 auto vectortype = field.value.type.VectorType(); in GenerateStructGetters() local 995 if (vectortype.base_type == BASE_TYPE_STRUCT || in GenerateStructGetters() 996 vectortype.base_type == BASE_TYPE_UNION) { in GenerateStructGetters() 1001 auto inline_size = NumToString(InlineSize(vectortype)); in GenerateStructGetters() 1006 switch (vectortype.base_type) { in GenerateStructGetters() 1008 bool fixed = vectortype.struct_def->fixed; in GenerateStructGetters()
|