Home
last modified time | relevance | path

Searched refs:size_prefixed (Results 1 – 8 of 8) sorted by relevance

/external/flatbuffers/rust/flatbuffers/src/
Dtable.rs67 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()
Dbuilder.rs521 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/
Dflatc.cpp281 opts.size_prefixed = true; in Compile()
392 contents.c_str(), parser->file_identifier_.c_str(), opts.size_prefixed)) { in Compile()
Didl_gen_text.cpp288 auto root = parser.opts.size_prefixed ? in GenerateText()
Didl_parser.cpp2605 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/
Didl.h439 bool size_prefixed; member
512 size_prefixed(false), in IDLOptions()
Dflatbuffers.h1959 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/
Dintegration_test.rs144 …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()