/third_party/flatbuffers/include/flatbuffers/ |
D | grpc.h | 111 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 …]
|
D | reflection.h | 100 FLATBUFFERS_ASSERT(sizeof(T) == GetTypeSize(field.type()->base_type())); in GetFieldDefaultI() 106 FLATBUFFERS_ASSERT(sizeof(T) == GetTypeSize(field.type()->base_type())); in GetFieldDefaultF() 113 FLATBUFFERS_ASSERT(sizeof(T) == GetTypeSize(field.type()->base_type())); in GetFieldI() 121 FLATBUFFERS_ASSERT(sizeof(T) == GetTypeSize(field.type()->base_type())); in GetFieldF() 129 FLATBUFFERS_ASSERT(field.type()->base_type() == reflection::String); in GetFieldS() 136 FLATBUFFERS_ASSERT(field.type()->base_type() == reflection::Vector && in GetFieldV() 151 FLATBUFFERS_ASSERT(field.type()->base_type() == reflection::Obj || in GetFieldT() 161 FLATBUFFERS_ASSERT(field.type()->base_type() == reflection::Obj); in GetFieldStruct() 168 FLATBUFFERS_ASSERT(field.type()->base_type() == reflection::Obj); in GetFieldStruct() 289 FLATBUFFERS_ASSERT(sizeof(T) == GetTypeSize(type)); in SetField() [all …]
|
D | flatbuffers.h | 78 FLATBUFFERS_ASSERT(*reinterpret_cast<char *>(&endiantest) == in EndianCheck() 273 FLATBUFFERS_ASSERT(i < size()); 329 FLATBUFFERS_ASSERT(i < size()); 337 FLATBUFFERS_ASSERT(i < size()); 345 FLATBUFFERS_ASSERT(i < size()); 457 FLATBUFFERS_ASSERT(i < size()); 493 FLATBUFFERS_ASSERT(i < size()); 514 FLATBUFFERS_ASSERT(!(p1 >= p2 && p1 < (p2 + length)) && 528 FLATBUFFERS_ASSERT(i < size()); 583 FLATBUFFERS_ASSERT(false); [all …]
|
D | util.h | 42 FLATBUFFERS_ASSERT(a <= b); in check_ascii_range() 59 FLATBUFFERS_ASSERT(is_alpha(alpha)); in is_alpha_char() 202 FLATBUFFERS_ASSERT(i >= 0); in IntToStringHex() 298 FLATBUFFERS_ASSERT(str); 323 FLATBUFFERS_ASSERT(str && val); in StringToFloatImpl() 341 FLATBUFFERS_ASSERT(s && val); in StringToNumber() 485 FLATBUFFERS_ASSERT(!(ucc & 0x80000000)); // Top bit can't be set. in ToUTF8() 503 FLATBUFFERS_ASSERT(0); // Impossible to arrive here. in ToUTF8()
|
D | flexbuffers.h | 102 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() 1103 FLATBUFFERS_ASSERT(!(len & 1)); in EndMap() 1107 FLATBUFFERS_ASSERT(stack_[key].type_ == FBT_KEY); in EndMap() 1226 FLATBUFFERS_ASSERT(len >= 2 && len <= 4); in FixedTypedVector() 1325 FLATBUFFERS_ASSERT(stack_.size() == 1); in Finish() 1343 FLATBUFFERS_ASSERT(finished_); in Finished() [all …]
|
D | base.h | 19 #if !defined(FLATBUFFERS_ASSERT) 21 #define FLATBUFFERS_ASSERT assert macro 380 FLATBUFFERS_ASSERT(0); in EndianSwap()
|
D | minireflect.h | 93 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()
|
D | idl.h | 224 FLATBUFFERS_ASSERT(false); in Move() 340 FLATBUFFERS_ASSERT(!(required && optional)); in MakeFieldPresence() 711 FLATBUFFERS_ASSERT(cursor_ && line_start_ && cursor_ >= line_start_); in CursorPosition() 751 ~CheckedError() { FLATBUFFERS_ASSERT(has_been_checked_); } in ~CheckedError()
|
/third_party/flatbuffers/src/ |
D | idl_gen_rust.cpp | 127 FLATBUFFERS_ASSERT(false && "vectors of unions are unsupported"); in GetFullType() 131 FLATBUFFERS_ASSERT(false && "vector of vectors are unsupported"); in GetFullType() 148 FLATBUFFERS_ASSERT(false && "Unsupported type for fixed array"); in GetFullType() 158 FLATBUFFERS_ASSERT(false && "unknown union field type"); in GetFullType() 171 FLATBUFFERS_ASSERT(false && "unknown number type"); in GetFullType() 175 FLATBUFFERS_ASSERT(false && "completely unknown type"); in GetFullType() 429 FLATBUFFERS_ASSERT(!struct_def.fixed); in TableBuilderArgsNeedsLifetime() 538 FLATBUFFERS_ASSERT(false && "incorrect type given"); in GetTypeBasic() 561 FLATBUFFERS_ASSERT(false && "precondition failed in GetEnumTypeForDecl"); in GetEnumTypeForDecl() 642 FLATBUFFERS_ASSERT(minv && maxv); in GenEnum() [all …]
|
D | idl_gen_text.cpp | 174 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()
|
D | idl_parser.cpp | 165 FLATBUFFERS_ASSERT(caller_depth_ <= (FLATBUFFERS_MAX_PARSING_DEPTH) && in ParseDepthGuard() 258 FLATBUFFERS_ASSERT(full_name.empty()); in LookupTableByName() 306 FLATBUFFERS_ASSERT(nibbles > 0); in ParseHexNum() 829 FLATBUFFERS_ASSERT(false == text.empty()); in ParseField() 905 FLATBUFFERS_ASSERT(IsInteger(type.base_type)); in ParseField() 1061 FLATBUFFERS_ASSERT(field); in ParseAnyValue() 1095 FLATBUFFERS_ASSERT(parent_struct_def); in ParseAnyValue() 1097 FLATBUFFERS_ASSERT(type_field); // Guaranteed by ParseField(). in ParseAnyValue() 1142 FLATBUFFERS_ASSERT(false); in ParseAnyValue() 1188 FLATBUFFERS_ASSERT(val.constant.length() == struct_def.bytesize); in SerializeStruct() [all …]
|
D | code_generators.cpp | 56 FLATBUFFERS_ASSERT(false && "could not find key"); in operator +=() 206 FLATBUFFERS_ASSERT(done); in GenFloatConstantImpl() 223 FLATBUFFERS_ASSERT(false); in GenFloatConstant() 319 FLATBUFFERS_ASSERT(parser.opts.lang == IDLOptions::kJava || in JavaCSharpMakeRule()
|
D | idl_gen_cpp.cpp | 329 FLATBUFFERS_ASSERT(!cur_name_space_); in generate() 823 FLATBUFFERS_ASSERT(true); in GenTypeGet() 837 FLATBUFFERS_ASSERT(IsSeries(type) && "unexpected type"); in GenTypeSpan() 850 FLATBUFFERS_ASSERT(type.struct_def); in GenTypeSpan() 855 FLATBUFFERS_ASSERT(false && "unexpected element's type"); in GenTypeSpan() 898 FLATBUFFERS_ASSERT(false); in GetUnionElement() 1144 FLATBUFFERS_ASSERT(minv && maxv); in GenEnum() 1281 FLATBUFFERS_ASSERT(enum_def.Lookup("NONE")); in GenEnum() 1433 FLATBUFFERS_ASSERT(false); in GenUnionPost() 1484 FLATBUFFERS_ASSERT(false); in GenUnionPost() [all …]
|
D | reflection.cpp | 289 default: FLATBUFFERS_ASSERT(false); in ResizeTable() 491 FLATBUFFERS_ASSERT(offset_idx == offsets.size()); in CopyTable() 554 FLATBUFFERS_ASSERT(vec_field.type()->base_type() == reflection::Vector); in VerifyVector() 624 default: FLATBUFFERS_ASSERT(false); return false; in VerifyVector() 636 case reflection::None: FLATBUFFERS_ASSERT(false); break; in VerifyObject() 697 default: FLATBUFFERS_ASSERT(false); break; in VerifyObject()
|
D | util.cpp | 82 FLATBUFFERS_ASSERT(g_load_file_function); in LoadFile() 87 FLATBUFFERS_ASSERT(g_file_exists_function); in FileExists()
|
D | idl_gen_ts.cpp | 439 FLATBUFFERS_ASSERT(false); in GenUnionTypeTS() 571 FLATBUFFERS_ASSERT(false); in GenObjApiUnionTypeTS() 627 FLATBUFFERS_ASSERT(false); in GenUnionConvFunc() 649 FLATBUFFERS_ASSERT(0); in GenUnionConvFunc() 713 FLATBUFFERS_ASSERT(0); in GenUnionValTS() 952 default: FLATBUFFERS_ASSERT(0); break; in GenObjApi() 1037 FLATBUFFERS_ASSERT(f != nullptr); in CanCreateFactoryMethod() 1259 default: FLATBUFFERS_ASSERT(0); in GenStruct() 1568 FLATBUFFERS_ASSERT(parser.opts.lang <= IDLOptions::kMAX); in TSMakeRule()
|
D | idl_gen_go.cpp | 653 default: FLATBUFFERS_ASSERT(0); in GenStructAccessor() 945 FLATBUFFERS_ASSERT(0); in GenNativeTablePack() 1028 FLATBUFFERS_ASSERT(0); in GenNativeTableUnPack() 1045 FLATBUFFERS_ASSERT(0); in GenNativeTableUnPack() 1254 FLATBUFFERS_ASSERT(0); in NativeType()
|
D | idl_gen_grpc.cpp | 195 FLATBUFFERS_ASSERT(str_->empty()); in SetIndentationSize() 203 FLATBUFFERS_ASSERT(indent_ >= 0); in Outdent()
|
D | idl_gen_java.cpp | 258 FLATBUFFERS_ASSERT(value.type.enum_def); in GenEnumDefaultValue() 770 default: FLATBUFFERS_ASSERT(0); in GenStruct() 1123 FLATBUFFERS_ASSERT(key_field); in GenStruct()
|
D | idl_gen_python.cpp | 433 FLATBUFFERS_ASSERT(nested_root); // Guaranteed to exist by parser. in GetVectorAsNestedFlatbuffer() 645 FLATBUFFERS_ASSERT(nested_root); // Guaranteed to exist by parser. in BuildVectorOfTableFromBytes() 729 default: FLATBUFFERS_ASSERT(0); in GenStructAccessor() 857 FLATBUFFERS_ASSERT(false && "base_type is not a scalar or string type."); in GetBasePythonTypeForScalarAndString()
|
D | idl_gen_swift.cpp | 738 default: FLATBUFFERS_ASSERT(0); in GenTableReaderFields() 1416 FLATBUFFERS_ASSERT(!(field.padding & ~0xF)); in GenPadding() 1465 FLATBUFFERS_ASSERT(value.type.enum_def); in GenEnumDefaultValue()
|
D | idl_gen_lobster.cpp | 177 default: FLATBUFFERS_ASSERT(0); in GenStructAccessor()
|
D | idl_gen_csharp.cpp | 208 FLATBUFFERS_ASSERT(value.type.enum_def); in GenEnumDefaultValue() 792 default: FLATBUFFERS_ASSERT(0); in GenStruct() 1172 FLATBUFFERS_ASSERT(key_field); in GenStruct()
|
/third_party/flatbuffers/tests/fuzzer/ |
D | flatbuffers_scalar_fuzzer.cc | 291 FLATBUFFERS_ASSERT(setlocale(LC_ALL, OneTimeTestInit::test_locale())); in LLVMFuzzerTestOneInput() 357 FLATBUFFERS_ASSERT(false); in LLVMFuzzerTestOneInput() 361 FLATBUFFERS_ASSERT(GenerateText( in LLVMFuzzerTestOneInput() 363 FLATBUFFERS_ASSERT(GenerateText( in LLVMFuzzerTestOneInput() 368 FLATBUFFERS_ASSERT(false); in LLVMFuzzerTestOneInput() 373 if (use_locale) { FLATBUFFERS_ASSERT(setlocale(LC_ALL, "C")); } in LLVMFuzzerTestOneInput()
|
D | CMakeLists.txt | 113 # FLATBUFFERS_ASSERT should assert in Release as well. Redefine 114 # FLATBUFFERS_ASSERT macro definition. Declare as PUBLIC to cover asserts in all 119 FLATBUFFERS_ASSERT=fuzzer_assert_impl 168 FLATBUFFERS_ASSERT=fuzzer_assert_impl
|