Searched refs:size_prefixed (Results 1 – 8 of 8) sorted by relevance
/external/flatbuffers/rust/flatbuffers/src/ |
D | table.rs | 67 pub fn buffer_has_identifier(data: &[u8], ident: &str, size_prefixed: bool) -> bool { in buffer_has_identifier() 70 let got = if size_prefixed { in buffer_has_identifier()
|
D | builder.rs | 521 size_prefixed: bool) { in finish_with_opts() 530 let b = if size_prefixed { SIZE_UOFFSET } else { 0 }; in finish_with_opts() 552 if size_prefixed { in finish_with_opts()
|
/external/flatbuffers/src/ |
D | flatc.cpp | 281 opts.size_prefixed = true; in Compile() 392 contents.c_str(), parser->file_identifier_.c_str(), opts.size_prefixed)) { in Compile()
|
D | idl_gen_text.cpp | 288 auto root = parser.opts.size_prefixed ? in GenerateText()
|
D | idl_parser.cpp | 2605 if (opts.size_prefixed) { in DoParse() 2739 if (opts.size_prefixed) { in Serialize() 3078 bool size_prefixed = false; in Deserialize() local 3084 size_prefixed = true; in Deserialize() 3086 auto verify_fn = size_prefixed ? &reflection::VerifySizePrefixedSchemaBuffer in Deserialize() 3091 auto schema = size_prefixed ? reflection::GetSizePrefixedSchema(buf) in Deserialize()
|
/external/flatbuffers/include/flatbuffers/ |
D | idl.h | 439 bool size_prefixed; member 512 size_prefixed(false), in IDLOptions()
|
D | flatbuffers.h | 1959 inline const char *GetBufferIdentifier(const void *buf, bool size_prefixed = false) { 1961 ((size_prefixed) ? 2 * sizeof(uoffset_t) : sizeof(uoffset_t)); 1965 inline bool BufferHasIdentifier(const void *buf, const char *identifier, bool size_prefixed = false… 1966 return strncmp(GetBufferIdentifier(buf, size_prefixed), identifier,
|
/external/flatbuffers/tests/rust_usage_test/tests/ |
D | integration_test.rs | 144 …le_is_accessible_and_correct(bytes: &[u8], identifier_required: bool, size_prefixed: bool) -> Resu… in serialized_example_is_accessible_and_correct() 147 let correct = if size_prefixed { in serialized_example_is_accessible_and_correct() 155 let m = if size_prefixed { in serialized_example_is_accessible_and_correct()
|