Home
last modified time | relevance | path

Searched refs:NumToString (Results 1 – 13 of 13) sorted by relevance

/external/flatbuffers/src/
Didl_gen_php.cpp124 code += NumToString(ev.value) + ";\n"; in EnumMember()
184 code += NumToString(field.value.offset) + ");\n"; in GetVectorLen()
202 code += NumToString(field.value.offset) + ");\n"; in GetUByte()
224 code += NumToString(field.value.offset) + ")"; in GetScalarFieldOfStruct()
244 NumToString(field.value.offset) + in GetScalarFieldOfTable()
266 code += NumToString(field.value.offset) + ", $this->bb);"; in GetStructFieldOfStruct()
284 NumToString(field.value.offset) + in GetStructFieldOfTable()
307 NumToString(field.value.offset) + in GetStringField()
327 NumToString(field.value.offset) + in GetUnionField()
349 NumToString(field.value.offset) + in GetMemberOfVectorOfStruct()
[all …]
Didl_gen_js.cpp196 code += " " + ev.name + ": " + NumToString(ev.value); in GenEnum()
264 return context + ".createLong(" + NumToString((int32_t)constant) + in GenDefaultValue()
265 ", " + NumToString((int32_t)(constant >> 32)) + ")"; in GenDefaultValue()
317 return value != 0 ? " + " + NumToString(value) : ""; in MaybeAdd()
322 return value != 1 ? " * " + NumToString(value) : ""; in MaybeScale()
350 *body += NumToString(struct_def.minalign) + ", "; in GenStructBody()
351 *body += NumToString(struct_def.bytesize) + ");\n"; in GenStructBody()
357 *body += " builder.pad(" + NumToString(field.padding) + ");\n"; in GenStructBody()
452 NumToString(field.value.offset) + ");\n return offset ? "; in GenStruct()
589 …code += " var offset = this.bb.__offset(this.bb_pos, " + NumToString(field.value.offset) + ");\n\… in GenStruct()
[all …]
Didl_gen_go.cpp52 NumToString(field.value.offset) + in OffsetPrefix()
82 code += NumToString(ev.value) + "\n"; in EnumMember()
201 code += NumToString(field.value.offset) + "))\n}\n"; in GetScalarFieldOfStruct()
234 code += NumToString(field.value.offset) + ")"; in GetStructFieldOfStruct()
304 code += NumToString(InlineSize(vectortype)) + "\n"; in GetMemberOfVectorOfStruct()
329 code += NumToString(InlineSize(vectortype)) + "))\n"; in GetMemberOfVectorOfNonStruct()
389 code += "\tbuilder.Prep(" + NumToString(struct_def.minalign) + ", "; in StructBuilderBody()
390 code += NumToString(struct_def.bytesize) + ")\n"; in StructBuilderBody()
396 code += "\tbuilder.Pad(" + NumToString(field.padding) + ")\n"; in StructBuilderBody()
421 code += NumToString(struct_def.fields.vec.size()); in GetStartOfTable()
[all …]
Didl_gen_python.cpp48 NumToString(field.value.offset) + in OffsetPrefix()
72 code += NumToString(ev.value) + "\n"; in EnumMember()
134 code += NumToString(field.value.offset) + "))\n"; in GetScalarFieldOfStruct()
162 code += NumToString(field.value.offset) + ")"; in GetStructFieldOfStruct()
240 code += NumToString(InlineSize(vectortype)) + "\n"; in GetMemberOfVectorOfStruct()
268 code += NumToString(InlineSize(vectortype)) + "))\n"; in GetMemberOfVectorOfNonStruct()
323 code += " builder.Prep(" + NumToString(struct_def.minalign) + ", "; in StructBuilderBody()
324 code += NumToString(struct_def.bytesize) + ")\n"; in StructBuilderBody()
330 code += " builder.Pad(" + NumToString(field.padding) + ")\n"; in StructBuilderBody()
354 code += NumToString(struct_def.fields.vec.size()); in GetStartOfTable()
[all …]
Didl_gen_general.cpp457 return NumToString(static_cast<int64_t>(defaultValue)) + longSuffix; in GenDefaultValue()
525 code += NumToString(ev.value); in GenEnum()
645 code += NumToString(struct_def.minalign) + ", "; in GenStructBody()
646 code += NumToString(struct_def.bytesize) + ");\n"; in GenStructBody()
652 code += NumToString(field.padding) + ");\n"; in GenStructBody()
679 NumToString(key_field->value.offset) + ", "; in GenOffsetGetter()
857 NumToString(field.value.offset) + in GenStruct()
910 code += NumToString(field.value.offset) + ")"; in GenStruct()
929 code += "bb_pos + " + NumToString(field.value.offset) + ", "; in GenStruct()
957 NumToString(InlineSize(vectortype)); in GenStruct()
[all …]
Didl_parser.cpp78 error_ += "(" + NumToString(line_) + ")"; // MSVC alike in Error()
81 error_ += NumToString(line_) + ":0"; // gcc alike in Error()
98 return Error("constant does not fit in a " + NumToString(bits) + in CheckBitsFit()
225 return Error("escape code must be followed by " + NumToString(nibbles) + in ParseHexNum()
389 attribute_ = NumToString(attribute_ == "true"); in Next()
462 attribute_ = NumToString(static_cast<int64_t>( in Next()
489 if (c < ' ' || c > '~') ch = "code: " + NumToString(c); in Next()
729 val->constant = NumToString(id - 1); in ParseField()
796 val.constant = NumToString(builder_.CreateString(s).o); in ParseAnyValue()
803 val.constant = NumToString(off); in ParseAnyValue()
[all …]
Didl_gen_cpp.cpp539 code_.SetValue("VALUE", NumToString(ev.value)); in GenEnum()
558 code_.SetValue("VALUE", NumToString(anyv)); in GenEnum()
1071 code_.SetValue("OFFSET_VALUE", NumToString(field.value.offset)); in GenTable()
1299 auto num_fields = NumToString(struct_def.fields.vec.size()); in GenBuilders()
1719 *code_ptr += " int" + NumToString(bits) + "_t padding" + in PaddingDefinition()
1720 NumToString((*id)++) + "__;"; in PaddingDefinition()
1725 *code_ptr += ",\n padding" + NumToString((*id)++) + "__(0)"; in PaddingInitializer()
1730 *code_ptr += " (void)padding" + NumToString((*id)++) + "__;"; in PaddingNoop()
1741 code_.SetValue("ALIGN", NumToString(struct_def.minalign)); in GenStruct()
1865 code_.SetValue("STRUCT_BYTE_SIZE", NumToString(struct_def.bytesize)); in GenStruct()
Didl_gen_fbs.cpp98 schema += " " + ev.name + " = " + NumToString(ev.value) + ",\n"; in GenerateFBS()
Dreflection.cpp66 case reflection::Double: return NumToString(GetAnyValueF(type, data)); in GetAnyValueS()
107 default: return NumToString(GetAnyValueI(type, data)); in GetAnyValueS()
Didl_gen_text.cpp67 text += NumToString(val); in Print()
/external/flatbuffers/include/flatbuffers/
Dutil.h50 template<typename T> std::string NumToString(T t) { in NumToString() function
56 template<> inline std::string NumToString<signed char>(signed char t) {
57 return NumToString(static_cast<int>(t));
59 template<> inline std::string NumToString<unsigned char>(unsigned char t) {
60 return NumToString(static_cast<int>(t));
64 template<> inline std::string NumToString<double>(double t) {
80 template<> inline std::string NumToString<float>(float t) {
81 return NumToString(static_cast<double>(t));
Dflexbuffers.h460 return flatbuffers::NumToString(AsInt64()); in ToString()
462 return flatbuffers::NumToString(AsUInt64()); in ToString()
464 return flatbuffers::NumToString(AsDouble()); in ToString()
/external/flatbuffers/tests/
Dtest.cpp64 TestFail(flatbuffers::NumToString(expval).c_str(), in TestEq()
65 flatbuffers::NumToString(val).c_str(), in TestEq()
808 std::string definition_name = "D" + flatbuffers::NumToString(definition); in FuzzTest2()
826 std::string field_name = "f" + flatbuffers::NumToString(field); in FuzzTest2()
858 ("D" + flatbuffers::NumToString(defref)).c_str(), in FuzzTest2()
881 flatbuffers::NumToString(lcg_rand() % 128).c_str(); in FuzzTest2()
891 schema += "root_type D" + flatbuffers::NumToString(num_definitions - 1); in FuzzTest2()