Home
last modified time | relevance | path

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

12

/third_party/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.h100 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 …]
Dflatbuffers.h78 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 …]
Dutil.h42 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()
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()
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 …]
Dbase.h19 #if !defined(FLATBUFFERS_ASSERT)
21 #define FLATBUFFERS_ASSERT assert macro
380 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()
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/
Didl_gen_rust.cpp127 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 …]
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_parser.cpp165 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 …]
Dcode_generators.cpp56 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()
Didl_gen_cpp.cpp329 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 …]
Dreflection.cpp289 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()
Dutil.cpp82 FLATBUFFERS_ASSERT(g_load_file_function); in LoadFile()
87 FLATBUFFERS_ASSERT(g_file_exists_function); in FileExists()
Didl_gen_ts.cpp439 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()
Didl_gen_go.cpp653 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()
Didl_gen_grpc.cpp195 FLATBUFFERS_ASSERT(str_->empty()); in SetIndentationSize()
203 FLATBUFFERS_ASSERT(indent_ >= 0); in Outdent()
Didl_gen_java.cpp258 FLATBUFFERS_ASSERT(value.type.enum_def); in GenEnumDefaultValue()
770 default: FLATBUFFERS_ASSERT(0); in GenStruct()
1123 FLATBUFFERS_ASSERT(key_field); in GenStruct()
Didl_gen_python.cpp433 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()
Didl_gen_swift.cpp738 default: FLATBUFFERS_ASSERT(0); in GenTableReaderFields()
1416 FLATBUFFERS_ASSERT(!(field.padding & ~0xF)); in GenPadding()
1465 FLATBUFFERS_ASSERT(value.type.enum_def); in GenEnumDefaultValue()
Didl_gen_lobster.cpp177 default: FLATBUFFERS_ASSERT(0); in GenStructAccessor()
Didl_gen_csharp.cpp208 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/
Dflatbuffers_scalar_fuzzer.cc291 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()
DCMakeLists.txt113 # 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

12