Home
last modified time | relevance | path

Searched refs:BookReader (Results 1 – 16 of 16) sorted by relevance

/external/flatbuffers/tests/union_vector/
Dunion_vector_generated.h15 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 …]
DBookReader.java9 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()
DBookReader.cs9 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()
Dunion_vector.fbs12 struct BookReader {
19 Belle: BookReader,
20 BookFan: BookReader,
Dunion_vector_generated.js194 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;
DMovie.cs82 …_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()
DBookReader.php9 class BookReader extends Struct class
14 * @return BookReader
DBookReader.kt9 class BookReader : Struct() { class
14 fun __assign(_i: Int, _bb: ByteBuffer) : BookReader { in __assign()
DCharacter.cs39 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()
Dunion_vector_generated.ts161 export class BookReader { class
170 __init(i:number, bb:flatbuffers.ByteBuffer):BookReader {
/external/flatbuffers/tests/
DJavaScriptUnionVectorTest.js23 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());
DphpUnionVectorTest.php67 BookReader::createBookReader($fbb, 7),
69 BookReader::createBookReader($fbb, 2),
89 $bookReader7 = $movie->getCharacters(0, new BookReader());
95 $bookReader2 = $movie->getCharacters(2, new BookReader());
Dtest.cpp2549 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/
Dunion_vector_generated.swift36 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()
DFlatBuffersUnionTests.swift85 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/
DFlatBuffersExampleTests.cs461 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()