Home
last modified time | relevance | path

Searched refs:vectortype (Results 1 – 10 of 10) sorted by relevance

/third_party/flatbuffers/src/
Didl_gen_swift.cpp619 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 …]
Didl_gen_lobster.cpp144 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()
Didl_gen_php.cpp331 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 …]
Didl_gen_lua.cpp292 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()
Didl_gen_ts.cpp858 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 …]
Didl_gen_python.cpp340 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 …]
Didl_gen_go.cpp438 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 …]
Didl_gen_java.cpp724 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()
Didl_gen_csharp.cpp703 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()
Didl_gen_kotlin.cpp992 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()