Home
last modified time | relevance | path

Searched refs:file_identifier (Results 1 – 25 of 34) sorted by relevance

12

/external/flatbuffers/include/flatbuffers/
Dregistry.h32 void Register(const char *file_identifier, const char *schema_path) { in Register() argument
35 schemas_[file_identifier] = schema; in Register()
65 const char *file_identifier) { in TextToFlatBuffer() argument
68 if (!LoadSchema(file_identifier, &parser)) return DetachedBuffer(); in TextToFlatBuffer()
Dflatbuffers.h1976 void Finish(Offset<T> root, const char *file_identifier = nullptr) {
1977 Finish(root.o, file_identifier, false);
1989 const char *file_identifier = nullptr) {
1990 Finish(root.o, file_identifier, true);
2002 void Finish(uoffset_t root, const char *file_identifier, bool size_prefix) {
2007 (file_identifier ? kFileIdentifierLength : 0),
2009 if (file_identifier) {
2010 FLATBUFFERS_ASSERT(strlen(file_identifier) == kFileIdentifierLength);
2011 PushBytes(reinterpret_cast<const uint8_t *>(file_identifier),
/external/flatbuffers/python/flatbuffers/
Dbuilder.py513 def __Finish(self, rootTable, sizePrefix, file_identifier=None): argument
518 if file_identifier is not None:
524 if file_identifier is not None:
530 file_identifier = N.struct.unpack(">BBBB", file_identifier)
533 self.Place(file_identifier[i], N.Uint8Flags)
543 def Finish(self, rootTable, file_identifier=None): argument
545 return self.__Finish(rootTable, False, file_identifier=file_identifier)
547 def FinishSizePrefixed(self, rootTable, file_identifier=None): argument
552 return self.__Finish(rootTable, True, file_identifier=file_identifier)
Dutil.py34 def BufferHasIdentifier(buf, offset, file_identifier, size_prefixed=False): argument
36 return got == file_identifier
/external/flatbuffers/rust/flatbuffers/src/
Dbuilder.rs364 pub fn finish_size_prefixed<T>(&mut self, root: WIPOffset<T>, file_identifier: Option<&str>) { in finish_size_prefixed()
365 self.finish_with_opts(root, file_identifier, true); in finish_size_prefixed()
373 pub fn finish<T>(&mut self, root: WIPOffset<T>, file_identifier: Option<&str>) { in finish()
374 self.finish_with_opts(root, file_identifier, false); in finish()
562 file_identifier: Option<&str>, in finish_with_opts()
577 let c = if file_identifier.is_some() { in finish_with_opts()
590 if let Some(ident) = file_identifier { in finish_with_opts()
/external/flatbuffers/java/com/google/flatbuffers/
DFlatBufferBuilder.java922 protected void finish(int root_table, String file_identifier, boolean size_prefix) { in finish() argument
924 if (file_identifier.length() != FILE_IDENTIFIER_LENGTH) in finish()
928 addByte((byte)file_identifier.charAt(i)); in finish()
940 public void finish(int root_table, String file_identifier) { in finish() argument
941 finish(root_table, file_identifier, false); in finish()
951 public void finishSizePrefixed(int root_table, String file_identifier) { in finishSizePrefixed() argument
952 finish(root_table, file_identifier, true); in finishSizePrefixed()
/external/flatbuffers/tests/
Darrays_test.fbs26 file_identifier "ARRT";
Dmonster_extra.fbs21 file_identifier "MONE";
Dpy_test.py69 for file_identifier in [None, b"MONS"]:
70 … gen_off = make_monster_from_generated_code(sizePrefix=sizePrefix, file_identifier=file_identifier)
71 … CheckReadBuffer(gen_buf, gen_off, sizePrefix=sizePrefix, file_identifier=file_identifier)
79 CheckReadBuffer(bytearray(canonicalWireData), 0, file_identifier=b'MONS')
530 def CheckReadBuffer(buf, offset, sizePrefix=False, file_identifier=None): argument
538 if file_identifier:
540 asserter(util.GetBufferIdentifier(buf, offset, size_prefixed=sizePrefix) == file_identifier)
541 …asserter(util.BufferHasIdentifier(buf, offset, file_identifier=file_identifier, size_prefixed=size…
547 if file_identifier:
1544 def make_monster_from_generated_code(sizePrefix = False, file_identifier=None): argument
[all …]
Dmonster_test.fbs145 file_identifier "MONS";
/external/flatbuffers/tests/union_vector/
Dunion_vector.fbs31 file_identifier "MOVI";
/external/tensorflow/tensorflow/lite/delegates/gpu/gl/
Dmetadata.fbs19 file_identifier "AFFL";
Dworkgroups.fbs19 file_identifier "AFWS";
Dcompiled_model.fbs19 file_identifier "AFCM";
/external/tensorflow/tensorflow/lite/delegates/gpu/cl/
Dcompiled_program_cache.fbs17 file_identifier "AFCM";
/external/tensorflow/tensorflow/lite/tools/
Dflatbuffer_utils.py89 builder.Finish(model_offset, file_identifier=_TFLITE_FILE_IDENTIFIER)
/external/flatbuffers/src/
Didl_gen_kotlin.cpp489 auto file_identifier = parser_.file_identifier_; in GenStruct() local
491 GenerateFinishStructBuffer(struct_def, file_identifier, writer); in GenStruct()
492 GenerateFinishSizePrefixed(struct_def, file_identifier, writer); in GenStruct()
784 auto file_identifier = parser_.file_identifier_; in GenerateBufferHasIdentifier() local
786 if (parser_.root_struct_def_ != &struct_def || !file_identifier.length()) in GenerateBufferHasIdentifier()
792 file_identifier + "\")"; in GenerateBufferHasIdentifier()
/external/flatbuffers/docs/source/
DGrammar.md50 file_identifier_decl = `file_identifier` string\_constant `;`
/external/flatbuffers/js/
Dflatbuffers.js690 var file_identifier = opt_file_identifier;
693 if (file_identifier.length != flatbuffers.FILE_IDENTIFIER_LENGTH) {
698 this.writeInt8(file_identifier.charCodeAt(i));
/external/flatbuffers/reflection/
Dreflection.fbs112 file_identifier "BFBS";
/external/libtextclassifier/native/annotator/person_name/
Dperson_name_model.fbs17 file_identifier "TC2 ";
/external/libtextclassifier/native/lang_id/common/flatbuffers/
Dmodel.fbs27 file_identifier "SM00";
Dembedding-network.fbs25 file_identifier "NS00";
/external/tensorflow/tensorflow/lite/schema/
Dschema_v3.fbs24 file_identifier "TFL3";
/external/tensorflow/tensorflow/lite/python/
Dutil.py595 builder.Finish(model_offset, file_identifier=_TFLITE_FILE_IDENTIFIER)

12