/third_party/flatbuffers/tests/union_vector/ |
D | character.ts | 4 import { BookReader, BookReaderT } from './book-reader'; 20 accessor: (obj:Attacker|BookReader|Rapunzel|string) => Attacker|BookReader|Rapunzel|string|null 21 ): Attacker|BookReader|Rapunzel|string|null { 26 case 'Belle': return accessor(new BookReader())! as BookReader; 27 case 'BookFan': return accessor(new BookReader())! as BookReader; 36 …accessor: (index: number, obj:Attacker|BookReader|Rapunzel|string) => Attacker|BookReader|Rapunzel… 38 ): Attacker|BookReader|Rapunzel|string|null { 43 case 'Belle': return accessor(index, new BookReader())! as BookReader; 44 case 'BookFan': return accessor(index, new BookReader())! as BookReader;
|
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 | character.js | 3 import { BookReader } from './book-reader'; 20 case 'Belle': return accessor(new BookReader()); 21 case 'BookFan': return accessor(new BookReader()); 32 case 'Belle': return accessor(index, new BookReader()); 33 case 'BookFan': return accessor(index, new BookReader());
|
D | Movie.cs | 25 public BookReader MainCharacterAsBelle() { return MainCharacter<BookReader>().Value; } in MainCharacterAsBelle() 26 public BookReader MainCharacterAsBookFan() { return MainCharacter<BookReader>().Value; } in MainCharacterAsBookFan() 88 …_o.MainCharacter.Value = this.MainCharacter<BookReader>().HasValue ? this.MainCharacter<BookReader… in UnPackTo() 91 …_o.MainCharacter.Value = this.MainCharacter<BookReader>().HasValue ? this.MainCharacter<BookReader… in UnPackTo() 113 …_o_Characters.Value = this.Characters<BookReader>(_j).HasValue ? this.Characters<BookReader>(_j).V… in UnPackTo() 116 …_o_Characters.Value = this.Characters<BookReader>(_j).HasValue ? this.Characters<BookReader>(_j).V… in UnPackTo()
|
D | book-reader.ts | 7 export class BookReader { class 10 __init(i:number, bb:flatbuffers.ByteBuffer):BookReader { 59 return BookReader.createBookReader(builder,
|
D | union_vector.fbs | 12 struct BookReader { 19 Belle: BookReader, 20 BookFan: BookReader,
|
D | BookReader.php | 9 class BookReader extends Struct class 14 * @return BookReader
|
D | book-reader.js | 2 export class BookReader { class 42 return BookReader.createBookReader(builder, this.booksRead);
|
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 | movie.ts | 6 import { BookReader, BookReaderT } from './book-reader';
|
/third_party/flatbuffers/tests/ |
D | JavaScriptUnionVectorTest.js | 5 import { BookReader, BookReaderT } from './union_vector/book-reader' 24 var bookReader7 = movie.characters(0, new BookReader()); 30 var bookReader2 = movie.characters(2, new BookReader()); 74 BookReader.createBookReader(fbb, 7), 76 BookReader.createBookReader(fbb, 2),
|
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 | 2674 characters.push_back(fbb.CreateStruct(BookReader(/*books_read=*/7)).Union()); in UnionVectorTest() 2676 characters.push_back(fbb.CreateStruct(BookReader(/*books_read=*/2)).Union()); in UnionVectorTest() 2709 auto belle = cs->GetAs<BookReader>(0); in UnionVectorTest() 2713 auto book_fan = cs->GetAs<BookReader>(2); in UnionVectorTest()
|
/third_party/flatbuffers/tests/FlatBuffers.Test.Swift/Tests/FlatBuffers.Test.SwiftTests/ |
D | union_vector_generated.swift | 40 var __obj = value as? BookReader in pack() 43 var __obj = value as? BookReader in pack() 101 public struct BookReader: NativeStruct, NativeObject { struct 134 public mutating func unpack() -> BookReader { in unpack() 135 return BookReader(&self) in unpack() 137 public static func pack(_ builder: inout FlatBufferBuilder, obj: inout BookReader?) -> Offset { in pack() 142 public static func pack(_ builder: inout FlatBufferBuilder, obj: inout BookReader) -> Offset { in pack()
|
D | FlatBuffersUnionTests.swift | 104 fb.create(struct: BookReader(booksRead: 7)), in testUnionVector() 106 fb.create(struct: BookReader(booksRead: 2)), in testUnionVector() 130 … type: BookReader_Mutable.self)?.booksRead, (objc?.characters[0]?.value as? BookReader)?.booksRead) in testUnionVector() 149 fb.create(struct: BookReader(booksRead: 7)), in testStringUnion() 170 XCTAssertEqual((objc?.characters[0]?.value as? BookReader)?.booksRead, 7) in testStringUnion()
|
/third_party/flatbuffers/tests/FlatBuffers.Test/ |
D | FlatBuffers.Core.Test.csproj | 122 <Compile Include="..\union_vector\BookReader.cs"> 123 <Link>union_vector\BookReader.cs</Link>
|
D | FlatBuffersExampleTests.cs | 463 BookReader.CreateBookReader(fbb, 20).Value, in TestUnionVector() 484 Assert.AreEqual(20, movie.Characters<BookReader>(1).Value.BooksRead); in TestUnionVector() 798 … Assert.AreEqual(a.Characters<BookReader>(1).Value.BooksRead, b.Characters[1].AsBelle().BooksRead); in AreEqual() 812 …Assert.AreEqual(a.Characters<BookReader>(1).Value.BooksRead, b.Characters<BookReader>(1).Value.Boo… in AreEqual()
|