Home
last modified time | relevance | path

Searched refs:FLATBUFFERS_ASSERT (Results 1 – 25 of 31) sorted by relevance

12

/external/flatbuffers/include/flatbuffers/
Dgrpc.h111 FLATBUFFERS_ASSERT(GRPC_SLICE_IS_EMPTY(slice_)); in allocate()
117 FLATBUFFERS_ASSERT(p == GRPC_SLICE_START_PTR(slice_)); in deallocate()
118 FLATBUFFERS_ASSERT(size == GRPC_SLICE_LENGTH(slice_)); in deallocate()
126 FLATBUFFERS_ASSERT(old_p == GRPC_SLICE_START_PTR(slice_)); in reallocate_downward()
127 FLATBUFFERS_ASSERT(old_size == GRPC_SLICE_LENGTH(slice_)); in reallocate_downward()
128 FLATBUFFERS_ASSERT(new_size > old_size); in reallocate_downward()
141 FLATBUFFERS_ASSERT(p == GRPC_SLICE_START_PTR(slice_)); in get_slice()
142 FLATBUFFERS_ASSERT(size == GRPC_SLICE_LENGTH(slice_)); in get_slice()
242 FLATBUFFERS_ASSERT(msg_data); in GetMessage()
243 FLATBUFFERS_ASSERT(msg_size); in GetMessage()
[all …]
Dreflection.h75 FLATBUFFERS_ASSERT(sizeof(T) == GetTypeSize(field.type()->base_type())); in GetFieldDefaultI()
81 FLATBUFFERS_ASSERT(sizeof(T) == GetTypeSize(field.type()->base_type())); in GetFieldDefaultF()
88 FLATBUFFERS_ASSERT(sizeof(T) == GetTypeSize(field.type()->base_type())); in GetFieldI()
96 FLATBUFFERS_ASSERT(sizeof(T) == GetTypeSize(field.type()->base_type())); in GetFieldF()
104 FLATBUFFERS_ASSERT(field.type()->base_type() == reflection::String); in GetFieldS()
111 FLATBUFFERS_ASSERT(field.type()->base_type() == reflection::Vector && in GetFieldV()
126 FLATBUFFERS_ASSERT(field.type()->base_type() == reflection::Obj || in GetFieldT()
136 FLATBUFFERS_ASSERT(field.type()->base_type() == reflection::Obj); in GetFieldStruct()
143 FLATBUFFERS_ASSERT(field.type()->base_type() == reflection::Obj); in GetFieldStruct()
264 FLATBUFFERS_ASSERT(sizeof(T) == GetTypeSize(type)); in SetField()
[all …]
Dflatbuffers.h73 FLATBUFFERS_ASSERT(*reinterpret_cast<char *>(&endiantest) == in EndianCheck()
257 FLATBUFFERS_ASSERT(i < size());
313 FLATBUFFERS_ASSERT(i < size());
321 FLATBUFFERS_ASSERT(i < size());
329 FLATBUFFERS_ASSERT(i < size());
440 FLATBUFFERS_ASSERT(i < size());
474 FLATBUFFERS_ASSERT(i < size());
493 FLATBUFFERS_ASSERT(i < size());
534 FLATBUFFERS_ASSERT(false);
604 FLATBUFFERS_ASSERT(new_size > old_size); // vector_downward only grows
[all …]
Dutil.h41 FLATBUFFERS_ASSERT(a <= b); in check_ascii_range()
55 FLATBUFFERS_ASSERT(is_alpha(alpha)); in is_alpha_char()
190 FLATBUFFERS_ASSERT(i >= 0); in IntToStringHex()
286 FLATBUFFERS_ASSERT(str);
311 FLATBUFFERS_ASSERT(str && val); in StringToFloatImpl()
326 FLATBUFFERS_ASSERT(s && val); in StringToNumber()
470 FLATBUFFERS_ASSERT(!(ucc & 0x80000000)); // Top bit can't be set. in ToUTF8()
488 FLATBUFFERS_ASSERT(0); // Impossible to arrive here. in ToUTF8()
Dflexbuffers.h102 FLATBUFFERS_ASSERT(IsTypedVectorElementType(t));
108 default: FLATBUFFERS_ASSERT(0); return FBT_NULL;
113 FLATBUFFERS_ASSERT(IsTypedVector(t)); in ToTypedVectorElementType()
118 FLATBUFFERS_ASSERT(IsFixedTypedVector(t)); in ToFixedTypedVectorElementType()
755 FLATBUFFERS_ASSERT(false); in MutateF()
1097 FLATBUFFERS_ASSERT(!(len & 1)); in EndMap()
1101 FLATBUFFERS_ASSERT(stack_[key].type_ == FBT_KEY); in EndMap()
1132 FLATBUFFERS_ASSERT(comp || &a == &b); in EndMap()
1212 FLATBUFFERS_ASSERT(len >= 2 && len <= 4); in FixedTypedVector()
1311 FLATBUFFERS_ASSERT(stack_.size() == 1); in Finish()
[all …]
Dbase.h19 #if !defined(FLATBUFFERS_ASSERT)
21 #define FLATBUFFERS_ASSERT assert macro
352 FLATBUFFERS_ASSERT(0); in EndianSwap()
Dminireflect.h93 default: FLATBUFFERS_ASSERT(false); return 1; in InlineSize()
95 default: FLATBUFFERS_ASSERT(false); return 1; in InlineSize()
194 FLATBUFFERS_ASSERT(prev_val); in IterateValue()
221 case ST_ENUM: FLATBUFFERS_ASSERT(false); break; in IterateValue()
Didl.h224 FLATBUFFERS_ASSERT(false); in Move()
678 FLATBUFFERS_ASSERT(cursor_ && line_start_ && cursor_ >= line_start_); in CursorPosition()
718 ~CheckedError() { FLATBUFFERS_ASSERT(has_been_checked_); } in ~CheckedError()
/external/flatbuffers/tests/fuzzer/
Dflatbuffers_scalar_fuzzer.cc266 FLATBUFFERS_ASSERT(setlocale(LC_ALL, OneTimeTestInit::test_locale())); in LLVMFuzzerTestOneInput()
332 FLATBUFFERS_ASSERT(false); in LLVMFuzzerTestOneInput()
336 FLATBUFFERS_ASSERT(GenerateText( in LLVMFuzzerTestOneInput()
338 FLATBUFFERS_ASSERT(GenerateText( in LLVMFuzzerTestOneInput()
343 FLATBUFFERS_ASSERT(false); in LLVMFuzzerTestOneInput()
348 if (use_locale) { FLATBUFFERS_ASSERT(setlocale(LC_ALL, "C")); } in LLVMFuzzerTestOneInput()
Dflatbuffers_parser_fuzzer.cc56 FLATBUFFERS_ASSERT(setlocale(LC_ALL, OneTimeTestInit::test_locale())); in LLVMFuzzerTestOneInput()
63 if (use_locale) { FLATBUFFERS_ASSERT(setlocale(LC_ALL, "C")); } in LLVMFuzzerTestOneInput()
DCMakeLists.txt65 # FLATBUFFERS_ASSERT should assert in Release as well.
66 # Redefine FLATBUFFERS_ASSERT macro definition.
69 FLATBUFFERS_ASSERT=fuzzer_assert_impl)
/external/flatbuffers/src/
Didl_gen_text.cpp174 FLATBUFFERS_ASSERT(prev_val); in PrintOffset()
230 case BASE_TYPE_ARRAY: FLATBUFFERS_ASSERT(0); in PrintOffset()
235 default: FLATBUFFERS_ASSERT(0); return false; in PrintOffset()
243 FLATBUFFERS_ASSERT(check); in GetFieldDefault()
264 FLATBUFFERS_ASSERT(IsStruct(fd.value.type) || IsArray(fd.value.type)); in GenFieldOffset()
372 FLATBUFFERS_ASSERT(parser.root_struct_def_); // call SetRootType() in GenerateText()
Didl_gen_rust.cpp125 FLATBUFFERS_ASSERT(false && "vectors of unions are unsupported"); in GetFullType()
129 FLATBUFFERS_ASSERT(false && "vector of vectors are unsupported"); in GetFullType()
139 FLATBUFFERS_ASSERT(false && "unknown union field type"); in GetFullType()
152 FLATBUFFERS_ASSERT(false && "unknown number type"); in GetFullType()
156 FLATBUFFERS_ASSERT(false && "completely unknown type"); in GetFullType()
325 FLATBUFFERS_ASSERT(!struct_def.fixed); in TableBuilderArgsNeedsLifetime()
353 FLATBUFFERS_ASSERT(false && "invalid struct member type"); in StructMemberAccessNeedsCopy()
448 FLATBUFFERS_ASSERT(false && "incorrect type given"); in GetTypeBasic()
471 FLATBUFFERS_ASSERT(false && "precondition failed in GetEnumTypeForDecl"); in GetEnumTypeForDecl()
543 FLATBUFFERS_ASSERT(minv && maxv); in GenEnum()
[all …]
Dcode_generators.cpp56 FLATBUFFERS_ASSERT(false && "could not find key"); in operator +=()
187 FLATBUFFERS_ASSERT(done); in GenFloatConstantImpl()
204 FLATBUFFERS_ASSERT(false); in GenFloatConstant()
300 FLATBUFFERS_ASSERT(parser.opts.lang == IDLOptions::kJava || in JavaCSharpMakeRule()
Didl_parser.cpp242 FLATBUFFERS_ASSERT(nibbles > 0); in ParseHexNum()
730 FLATBUFFERS_ASSERT(false == text.empty()); in ParseField()
745 FLATBUFFERS_ASSERT(IsInteger(type.base_type) || in ParseField()
751 FLATBUFFERS_ASSERT(field->value.constant == "0"); in ParseField()
899 FLATBUFFERS_ASSERT(field); in ParseAnyValue()
934 FLATBUFFERS_ASSERT(parent_struct_def); in ParseAnyValue()
936 FLATBUFFERS_ASSERT(type_field); // Guaranteed by ParseField(). in ParseAnyValue()
979 FLATBUFFERS_ASSERT(false); in ParseAnyValue()
1025 FLATBUFFERS_ASSERT(val.constant.length() == struct_def.bytesize); in SerializeStruct()
1216 FLATBUFFERS_ASSERT(value); in ParseTable()
[all …]
Dreflection.cpp289 default: FLATBUFFERS_ASSERT(false); in ResizeTable()
492 FLATBUFFERS_ASSERT(offset_idx == offsets.size()); in CopyTable()
555 FLATBUFFERS_ASSERT(vec_field.type()->base_type() == reflection::Vector); in VerifyVector()
625 default: FLATBUFFERS_ASSERT(false); return false; in VerifyVector()
637 case reflection::None: FLATBUFFERS_ASSERT(false); break; in VerifyObject()
698 default: FLATBUFFERS_ASSERT(false); break; in VerifyObject()
Dutil.cpp78 FLATBUFFERS_ASSERT(g_load_file_function); in LoadFile()
83 FLATBUFFERS_ASSERT(g_file_exists_function); in FileExists()
Didl_gen_cpp.cpp326 FLATBUFFERS_ASSERT(!cur_name_space_); in generate()
807 FLATBUFFERS_ASSERT(true); in GenTypeGet()
850 FLATBUFFERS_ASSERT(false); in GetUnionElement()
1082 FLATBUFFERS_ASSERT(minv && maxv); in GenEnum()
1219 FLATBUFFERS_ASSERT(enum_def.Lookup("NONE")); in GenEnum()
1375 FLATBUFFERS_ASSERT(false); in GenUnionPost()
1426 FLATBUFFERS_ASSERT(false); in GenUnionPost()
1458 FLATBUFFERS_ASSERT(false); in GenUnionPost()
1512 FLATBUFFERS_ASSERT(enum_def.Lookup("NONE")); in GenUnionPost()
1855 FLATBUFFERS_ASSERT(field.key); in GenKeyFieldMethods()
[all …]
Didl_gen_go.cpp640 default: FLATBUFFERS_ASSERT(0); in GenStructAccessor()
932 FLATBUFFERS_ASSERT(0); in GenNativeTablePack()
1013 FLATBUFFERS_ASSERT(0); in GenNativeTableUnPack()
1030 FLATBUFFERS_ASSERT(0); in GenNativeTableUnPack()
1239 FLATBUFFERS_ASSERT(0); in NativeType()
Didl_gen_js_ts.cpp57 FLATBUFFERS_ASSERT(lang == IDLOptions::kTs); in GetJsLangParams()
519 FLATBUFFERS_ASSERT(it != parser_.included_files_.end()); in GenPrefixedImport()
1010 default: FLATBUFFERS_ASSERT(0); in GenStruct()
1388 FLATBUFFERS_ASSERT(parser.opts.lang <= IDLOptions::kMAX); in JSTSMakeRule()
Didl_gen_java.cpp262 FLATBUFFERS_ASSERT(value.type.enum_def); in GenEnumDefaultValue()
770 default: FLATBUFFERS_ASSERT(0); in GenStruct()
1123 FLATBUFFERS_ASSERT(key_field); in GenStruct()
Didl_gen_swift.cpp522 default: FLATBUFFERS_ASSERT(0); in GenTableReaderFields()
774 FLATBUFFERS_ASSERT(value.type.enum_def); in GenEnumDefaultValue()
Didl_gen_lobster.cpp174 default: FLATBUFFERS_ASSERT(0); in GenStructAccessor()
Didl_gen_grpc.cpp176 FLATBUFFERS_ASSERT(indent_ >= 0); in Outdent()
Didl_gen_kotlin.cpp169 FLATBUFFERS_ASSERT(value.type.enum_def); in GenEnumDefaultValue()
963 default: FLATBUFFERS_ASSERT(0); in GenerateStructGetters()

12