Home
last modified time | relevance | path

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

/third_party/flatbuffers/python/flatbuffers/
Dutil.py23 def GetBufferIdentifier(buf, offset, size_prefixed=False): argument
25 if size_prefixed:
34 def BufferHasIdentifier(buf, offset, file_identifier, size_prefixed=False): argument
35 got = GetBufferIdentifier(buf, offset, size_prefixed=size_prefixed)
/third_party/flatbuffers/tests/MyGame/Example2/
DMonster.py24 def MonsterBufferHasIdentifier(cls, buf, offset, size_prefixed=False): argument
25 …flatbuffers.util.BufferHasIdentifier(buf, offset, b"\x4D\x4F\x4E\x53", size_prefixed=size_prefixed)
/third_party/flatbuffers/tests/MyGame/
DInParentNamespace.py24 def InParentNamespaceBufferHasIdentifier(cls, buf, offset, size_prefixed=False): argument
25 …flatbuffers.util.BufferHasIdentifier(buf, offset, b"\x4D\x4F\x4E\x53", size_prefixed=size_prefixed)
DMonsterExtra.py24 def MonsterExtraBufferHasIdentifier(cls, buf, offset, size_prefixed=False): argument
25 …flatbuffers.util.BufferHasIdentifier(buf, offset, b"\x4D\x4F\x4E\x45", size_prefixed=size_prefixed)
/third_party/flatbuffers/tests/MyGame/Example/
DTestSimpleTableWithEnum.py24 def TestSimpleTableWithEnumBufferHasIdentifier(cls, buf, offset, size_prefixed=False): argument
25 …flatbuffers.util.BufferHasIdentifier(buf, offset, b"\x4D\x4F\x4E\x53", size_prefixed=size_prefixed)
DReferrable.py24 def ReferrableBufferHasIdentifier(cls, buf, offset, size_prefixed=False): argument
25 …flatbuffers.util.BufferHasIdentifier(buf, offset, b"\x4D\x4F\x4E\x53", size_prefixed=size_prefixed)
DArrayTable.py24 def ArrayTableBufferHasIdentifier(cls, buf, offset, size_prefixed=False): argument
25 …flatbuffers.util.BufferHasIdentifier(buf, offset, b"\x41\x52\x52\x54", size_prefixed=size_prefixed)
DStat.py24 def StatBufferHasIdentifier(cls, buf, offset, size_prefixed=False): argument
25 …flatbuffers.util.BufferHasIdentifier(buf, offset, b"\x4D\x4F\x4E\x53", size_prefixed=size_prefixed)
DTypeAliases.py24 def TypeAliasesBufferHasIdentifier(cls, buf, offset, size_prefixed=False): argument
25 …flatbuffers.util.BufferHasIdentifier(buf, offset, b"\x4D\x4F\x4E\x53", size_prefixed=size_prefixed)
DMonster.py25 def MonsterBufferHasIdentifier(cls, buf, offset, size_prefixed=False): argument
26 …flatbuffers.util.BufferHasIdentifier(buf, offset, b"\x4D\x4F\x4E\x53", size_prefixed=size_prefixed)
/third_party/flatbuffers/rust/flatbuffers/src/
Dtable.rs59 pub fn buffer_has_identifier(data: &[u8], ident: &str, size_prefixed: bool) -> bool { in buffer_has_identifier()
62 let got = if size_prefixed { in buffer_has_identifier()
Dbuilder.rs655 size_prefixed: bool, in finish_with_opts()
667 let b = if size_prefixed { SIZE_UOFFSET } else { 0 }; in finish_with_opts()
689 if size_prefixed { in finish_with_opts()
/third_party/flatbuffers/tests/rust_usage_test/tests/
Darrays_test.rs48 size_prefixed: bool, in serialized_example_is_accessible_and_correct()
51 let correct = if size_prefixed { in serialized_example_is_accessible_and_correct()
59 let array_table = if size_prefixed { in serialized_example_is_accessible_and_correct()
Dintegration_test.rs254 …le_is_accessible_and_correct(bytes: &[u8], identifier_required: bool, size_prefixed: bool) -> Resu… in serialized_example_is_accessible_and_correct()
257 let correct = if size_prefixed { in serialized_example_is_accessible_and_correct()
265 let m = if size_prefixed { in serialized_example_is_accessible_and_correct()
/third_party/flatbuffers/src/
Didl_gen_ts.cpp358 bool size_prefixed) { in GenerateRootAccessor() argument
362 code += "static get" + (size_prefixed ? sizePrefixed : "") + "Root" + in GenerateRootAccessor()
366 if (size_prefixed) { in GenerateRootAccessor()
378 std::string &code, bool size_prefixed) { in GenerateFinisher() argument
383 code += "static finish" + (size_prefixed ? sizePrefixed : "") + in GenerateFinisher()
390 if (size_prefixed) { in GenerateFinisher()
Dflatc.cpp303 opts.size_prefixed = true; in Compile()
443 opts.size_prefixed)) { in Compile()
Didl_gen_text.cpp373 auto root = parser.opts.size_prefixed ? GetSizePrefixedRoot<Table>(flatbuffer) in GenerateText()
Didl_parser.cpp3426 if (opts.size_prefixed) { in DoParseJson()
3513 if (opts.size_prefixed) { in Serialize()
3845 bool size_prefixed = false; in Deserialize() local
3851 size_prefixed = true; in Deserialize()
3853 auto verify_fn = size_prefixed ? &reflection::VerifySizePrefixedSchemaBuffer in Deserialize()
3856 auto schema = size_prefixed ? reflection::GetSizePrefixedSchema(buf) in Deserialize()
/third_party/flatbuffers/include/flatbuffers/
Didl.h584 bool size_prefixed; member
673 size_prefixed(false), in IDLOptions()
Dflatbuffers.h2255 bool size_prefixed = false) {
2257 ((size_prefixed) ? 2 * sizeof(uoffset_t) : sizeof(uoffset_t));
2262 bool size_prefixed = false) {
2263 return strncmp(GetBufferIdentifier(buf, size_prefixed), identifier,
/third_party/flatbuffers/tests/
Dpy_test.py540 asserter(util.GetBufferIdentifier(buf, offset, size_prefixed=sizePrefix) == file_identifier)
541 …r(util.BufferHasIdentifier(buf, offset, file_identifier=file_identifier, size_prefixed=sizePrefix))
542 …r(MyGame.Example.Monster.Monster.MonsterBufferHasIdentifier(buf, offset, size_prefixed=sizePrefix))