Home
last modified time | relevance | path

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

/external/flatbuffers/src/
Didl_gen_swift.cpp528 auto vectortype = field.value.type.VectorType(); in GenTableReaderVectorFields() local
529 code_.SetValue("SIZE", NumToString(InlineSize(vectortype))); in GenTableReaderVectorFields()
532 code_.SetValue("CONSTANT", IsScalar(vectortype.base_type) == true in GenTableReaderVectorFields()
535 auto nullable = IsScalar(vectortype.base_type) == true ? "" : "?"; in GenTableReaderVectorFields()
536 nullable = IsEnum(vectortype) == true ? "?" : nullable; in GenTableReaderVectorFields()
537 if (vectortype.base_type != BASE_TYPE_UNION) { in GenTableReaderVectorFields()
546 if (IsBool(vectortype.base_type)) { in GenTableReaderVectorFields()
550 if (!IsEnum(vectortype)) in GenTableReaderVectorFields()
552 const_string + (IsBool(vectortype.base_type) ? "0 != " : "") + "\\"; in GenTableReaderVectorFields()
554 if (IsScalar(vectortype.base_type) && !IsEnum(vectortype) && in GenTableReaderVectorFields()
[all …]
Didl_gen_lobster.cpp141 auto vectortype = field.value.type.VectorType(); in GenStructAccessor() local
143 if (vectortype.base_type == BASE_TYPE_STRUCT) { in GenStructAccessor()
145 ") + i * " + NumToString(InlineSize(vectortype)); in GenStructAccessor()
146 if (!(vectortype.struct_def->fixed)) { in GenStructAccessor()
152 if (vectortype.base_type == BASE_TYPE_STRING) in GenStructAccessor()
155 code += "buf_.read_" + GenTypeName(vectortype) + "_le"; in GenStructAccessor()
157 ") + 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_python.cpp333 auto vectortype = field.value.type.VectorType(); in GetMemberOfVectorOfStruct() local
341 code += NumToString(InlineSize(vectortype)) + "\n"; in GetMemberOfVectorOfStruct()
342 if (!(vectortype.struct_def->fixed)) { in GetMemberOfVectorOfStruct()
362 auto vectortype = field.value.type.VectorType(); in GetMemberOfVectorOfNonStruct() local
372 code += NumToString(InlineSize(vectortype)) + "))\n"; in GetMemberOfVectorOfNonStruct()
373 if (vectortype.base_type == BASE_TYPE_STRING) { in GetMemberOfVectorOfNonStruct()
387 auto vectortype = field.value.type.VectorType(); in GetVectorOfNonStructAsNumpy() local
391 if (!(IsScalar(vectortype.base_type))) { return; } in GetVectorOfNonStructAsNumpy()
403 if (vectortype.base_type == BASE_TYPE_STRING) { in GetVectorOfNonStructAsNumpy()
604 auto vectortype = field.value.type.VectorType(); in GenStructAccessor() local
[all …]
Didl_gen_js_ts.cpp886 auto vectortype = field.value.type.VectorType(); in GenStruct() local
887 auto vectortypename = GenTypeName(vectortype, false); in GenStruct()
888 auto inline_size = InlineSize(vectortype); in GenStruct()
895 switch (vectortype.base_type) { in GenStruct()
922 } else if (vectortype.base_type == BASE_TYPE_STRUCT) { in GenStruct()
924 vectortypename, vectortype.struct_def->file); in GenStruct()
928 imported_files.insert(vectortype.struct_def->file); in GenStruct()
930 } else if (vectortype.base_type == BASE_TYPE_STRING) { in GenStruct()
943 if (vectortype.base_type == BASE_TYPE_STRUCT || is_union) { in GenStruct()
945 } else if (vectortype.base_type == BASE_TYPE_STRING) { in GenStruct()
[all …]
Didl_gen_lua.cpp288 auto vectortype = field.value.type.VectorType(); in GetMemberOfVectorOfStruct() local
297 code += NumToString(InlineSize(vectortype)) + ")\n"; in GetMemberOfVectorOfStruct()
298 if (!(vectortype.struct_def->fixed)) { in GetMemberOfVectorOfStruct()
317 auto vectortype = field.value.type.VectorType(); in GetMemberOfVectorOfNonStruct() local
328 code += NumToString(InlineSize(vectortype)) + "))\n"; in GetMemberOfVectorOfNonStruct()
330 if (vectortype.base_type == BASE_TYPE_STRING) { in GetMemberOfVectorOfNonStruct()
493 auto vectortype = field.value.type.VectorType(); in GenStructAccessor() local
494 if (vectortype.base_type == BASE_TYPE_STRUCT) { in GenStructAccessor()
Didl_gen_go.cpp425 auto vectortype = field.value.type.VectorType(); in GetMemberOfVectorOfStruct() local
433 code += NumToString(InlineSize(vectortype)) + "\n"; in GetMemberOfVectorOfStruct()
434 if (!(vectortype.struct_def->fixed)) { in GetMemberOfVectorOfStruct()
448 auto vectortype = field.value.type.VectorType(); in GetMemberOfVectorOfNonStruct() local
459 NumToString(InlineSize(vectortype)) + "))"); in GetMemberOfVectorOfNonStruct()
461 if (vectortype.base_type == BASE_TYPE_STRING) { in GetMemberOfVectorOfNonStruct()
463 } else if (vectortype.base_type == BASE_TYPE_BOOL) { in GetMemberOfVectorOfNonStruct()
631 auto vectortype = field.value.type.VectorType(); in GenStructAccessor() local
632 if (vectortype.base_type == BASE_TYPE_STRUCT) { in GenStructAccessor()
684 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_kotlin.cpp921 auto vectortype = field.value.type.VectorType(); in GenerateStructGetters() local
923 std::string nullable = IsScalar(vectortype.base_type) ? "" : "?"; in GenerateStructGetters()
925 if (vectortype.base_type == BASE_TYPE_STRUCT || in GenerateStructGetters()
926 vectortype.base_type == BASE_TYPE_UNION) { in GenerateStructGetters()
932 auto inline_size = NumToString(InlineSize(vectortype)); in GenerateStructGetters()
937 switch (vectortype.base_type) { in GenerateStructGetters()
939 bool fixed = vectortype.struct_def->fixed; in GenerateStructGetters()
Didl_gen_csharp.cpp690 auto vectortype = field.value.type.VectorType(); in GenStruct() local
691 if (vectortype.base_type == BASE_TYPE_UNION) { in GenStruct()
696 if (vectortype.base_type == BASE_TYPE_STRUCT) { in GenStruct()
698 } else if (vectortype.base_type == BASE_TYPE_UNION) { in GenStruct()
702 if (vectortype.base_type == BASE_TYPE_UNION) { in GenStruct()
713 index += "j * " + NumToString(InlineSize(vectortype)); in GenStruct()
714 if (vectortype.base_type == BASE_TYPE_STRUCT) { in GenStruct()
715 code += vectortype.struct_def->fixed in GenStruct()
731 if (vectortype.base_type == BASE_TYPE_UNION && in GenStruct()
732 HasUnionStringValue(*vectortype.enum_def)) { in GenStruct()