/external/flatbuffers/tests/union_vector/ |
D | union_vector_generated.h | 15 struct BookReader; 25 bool operator==(const BookReader &lhs, const BookReader &rhs); 26 bool operator!=(const BookReader &lhs, const BookReader &rhs); 119 BookReader *AsBelle() { in AsBelle() 121 reinterpret_cast<BookReader *>(value) : nullptr; in AsBelle() 123 const BookReader *AsBelle() const { in AsBelle() 125 reinterpret_cast<const BookReader *>(value) : nullptr; in AsBelle() 127 BookReader *AsBookFan() { in AsBookFan() 129 reinterpret_cast<BookReader *>(value) : nullptr; in AsBookFan() 131 const BookReader *AsBookFan() const { in AsBookFan() [all …]
|
D | BookReader.java | 9 public final class BookReader extends Struct { class 11 public BookReader __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } in __assign() 25 public BookReader get(int j) { return get(new BookReader(), j); } in get() 26 public BookReader get(BookReader obj, int j) { return obj.__assign(__element(j), bb); } in get()
|
D | BookReader.cs | 9 public struct BookReader : IFlatbufferObject struct 14 public BookReader __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } in __assign() argument 19 public static Offset<BookReader> CreateBookReader(FlatBufferBuilder builder, int BooksRead) { in CreateBookReader() argument 22 return new Offset<BookReader>(builder.Offset); in CreateBookReader() 32 public static Offset<BookReader> Pack(FlatBufferBuilder builder, BookReaderT _o) { in Pack() argument 33 if (_o == null) return default(Offset<BookReader>); in Pack()
|
D | union_vector.fbs | 12 struct BookReader { 19 Belle: BookReader, 20 BookFan: BookReader,
|
D | union_vector_generated.js | 194 function BookReader() { class 211 BookReader.prototype.__init = function(i, bb) { 220 BookReader.prototype.booksRead = function() { 228 BookReader.prototype.mutate_books_read = function(value) { 244 BookReader.createBookReader = function(builder, books_read) { 491 this.BookReader = BookReader;
|
D | Movie.cs | 82 …_o.MainCharacter.Value = this.MainCharacter<BookReader>().HasValue ? this.MainCharacter<BookReader… in UnPackTo() 85 …_o.MainCharacter.Value = this.MainCharacter<BookReader>().HasValue ? this.MainCharacter<BookReader… in UnPackTo() 107 …_o_Characters.Value = this.Characters<BookReader>(_j).HasValue ? this.Characters<BookReader>(_j).V… in UnPackTo() 110 …_o_Characters.Value = this.Characters<BookReader>(_j).HasValue ? this.Characters<BookReader>(_j).V… in UnPackTo()
|
D | BookReader.php | 9 class BookReader extends Struct class 14 * @return BookReader
|
D | BookReader.kt | 9 class BookReader : Struct() { class 14 fun __assign(_i: Int, _bb: ByteBuffer) : BookReader { in __assign()
|
D | Character.cs | 39 case Character.Belle: return BookReader.Pack(builder, _o.AsBelle()).Value; in Pack() 40 case Character.BookFan: return BookReader.Pack(builder, _o.AsBookFan()).Value; in Pack()
|
D | union_vector_generated.ts | 161 export class BookReader { class 170 __init(i:number, bb:flatbuffers.ByteBuffer):BookReader {
|
/external/flatbuffers/tests/ |
D | JavaScriptUnionVectorTest.js | 23 Test.BookReader.createBookReader(fbb, 7), 25 Test.BookReader.createBookReader(fbb, 2), 45 var bookReader7 = movie.characters(0, new Test.BookReader()); 51 var bookReader2 = movie.characters(2, new Test.BookReader());
|
D | phpUnionVectorTest.php | 67 BookReader::createBookReader($fbb, 7), 69 BookReader::createBookReader($fbb, 2), 89 $bookReader7 = $movie->getCharacters(0, new BookReader()); 95 $bookReader2 = $movie->getCharacters(2, new BookReader());
|
D | test.cpp | 2549 characters.push_back(fbb.CreateStruct(BookReader(/*books_read=*/7)).Union()); in UnionVectorTest() 2551 characters.push_back(fbb.CreateStruct(BookReader(/*books_read=*/2)).Union()); in UnionVectorTest() 2584 auto belle = cs->GetAs<BookReader>(0); in UnionVectorTest() 2588 auto book_fan = cs->GetAs<BookReader>(2); in UnionVectorTest()
|
/external/flatbuffers/tests/FlatBuffers.Test.Swift/Tests/FlatBuffers.Test.SwiftTests/ |
D | union_vector_generated.swift | 36 public struct BookReader: Readable { struct 58 …let memory = UnsafeMutableRawPointer.allocate(byteCount: BookReader.size, alignment: BookReader.al… in createBookReader() 59 memory.initializeMemory(as: UInt8.self, repeating: 0, count: BookReader.size) in createBookReader()
|
D | FlatBuffersUnionTests.swift | 85 fb.create(struct: createBookReader(booksRead: 7), type: BookReader.self), in testUnionVector() 87 fb.create(struct: createBookReader(booksRead: 2), type: BookReader.self), in testUnionVector() 102 XCTAssertEqual(movie.characters(at: 0, type: BookReader.self)?.booksRead, 7) in testUnionVector() 104 XCTAssertEqual(movie.characters(at: 2, type: BookReader.self)?.booksRead, 2) in testUnionVector()
|
/external/flatbuffers/tests/FlatBuffers.Test/ |
D | FlatBuffersExampleTests.cs | 461 BookReader.CreateBookReader(fbb, 20).Value, in TestUnionVector() 482 Assert.AreEqual(20, movie.Characters<BookReader>(1).Value.BooksRead); in TestUnionVector() 794 … Assert.AreEqual(a.Characters<BookReader>(1).Value.BooksRead, b.Characters[1].AsBelle().BooksRead); in AreEqual() 808 …Assert.AreEqual(a.Characters<BookReader>(1).Value.BooksRead, b.Characters<BookReader>(1).Value.Boo… in AreEqual()
|