Home
last modified time | relevance | path

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

/external/flatbuffers/tests/FlatBuffers.GRPC.Swift/Sources/Model/
Dgreeter_generated.swift11 …elloReply { return HelloReply(Table(bb: bb, position: Int32(bb.read(def: UOffset.self, position: b… in getRootAsHelloReply()
18 public static func startHelloReply(_ fbb: FlatBufferBuilder) -> UOffset { fbb.startTable(with: 1) } in startHelloReply()
20 …c endHelloReply(_ fbb: FlatBufferBuilder, start: UOffset) -> Offset<UOffset> { let end = Offset<UO… in endHelloReply()
22 offsetOfMessage message: Offset<String> = Offset()) -> Offset<UOffset> {
35 …Request { return HelloRequest(Table(bb: bb, position: Int32(bb.read(def: UOffset.self, position: b… in getRootAsHelloRequest()
42 …public static func startHelloRequest(_ fbb: FlatBufferBuilder) -> UOffset { fbb.startTable(with: 1… in startHelloRequest()
44 …endHelloRequest(_ fbb: FlatBufferBuilder, start: UOffset) -> Offset<UOffset> { let end = Offset<UO… in endHelloRequest()
46 offsetOfName name: Offset<String> = Offset()) -> Offset<UOffset> {
59 …st { return ManyHellosRequest(Table(bb: bb, position: Int32(bb.read(def: UOffset.self, position: b… in getRootAsManyHellosRequest()
67 …public static func startManyHellosRequest(_ fbb: FlatBufferBuilder) -> UOffset { fbb.startTable(wi… in startManyHellosRequest()
[all …]
/external/flatbuffers/swift/Sources/FlatBuffers/
DFlatBufferBuilder.swift8 private var _vtables: [UOffset] = []
28 public var size: UOffset { return _bb.size }
93 public func require(table: Offset<UOffset>, fields: [Int32]) { in require()
108 let size = MemoryLayout<UOffset>.size in finish<T>()
121 let size = MemoryLayout<UOffset>.size in finish<T>()
133 public func startTable(with numOfFields: Int) -> UOffset { in startTable()
148 public func endTable(at startOffset: UOffset) -> UOffset { in endTable()
232 … _bb.fill(padding: padding(bufSize: _bb.size + UOffset(len), elementSize: UOffset(alignment))) in preAlign()
245 fileprivate func refer(to off: UOffset) -> UOffset { in refer()
246 let size = MemoryLayout<UOffset>.size in refer()
[all …]
DOffset.swift6 public var o: UOffset
10 public init(offset: UOffset) { o = offset }
DInt+extension.swift11 var n = UOffset(self)
DMessage.swift19 …T.init(buffer, o: Int32(buffer.read(def: UOffset.self, position: buffer.reader)) + Int32(buffer.re…
DConstants.swift13 public typealias UOffset = UInt32 typealias
DByteBuffer.swift20 public var size: UOffset { return UOffset(_writerSize) }
/external/flatbuffers/tests/FlatBuffers.Test.Swift/Tests/FlatBuffers.Test.SwiftTests/
Dunion_vector_generated.swift70 …public static func finish(_ fbb: FlatBufferBuilder, end: Offset<UOffset>, prefix: Bool = false) { … in finish()
71 …-> Attacker { return Attacker(Table(bb: bb, position: Int32(bb.read(def: UOffset.self, position: b… in getRootAsAttacker()
78 public static func startAttacker(_ fbb: FlatBufferBuilder) -> UOffset { fbb.startTable(with: 1) } in startAttacker()
80 …unc endAttacker(_ fbb: FlatBufferBuilder, start: UOffset) -> Offset<UOffset> { let end = Offset<UO… in endAttacker()
82 swordAttackDamage: Int32 = 0) -> Offset<UOffset> {
95 …public static func finish(_ fbb: FlatBufferBuilder, end: Offset<UOffset>, prefix: Bool = false) { … in finish()
96 …ffer) -> Movie { return Movie(Table(bb: bb, position: Int32(bb.read(def: UOffset.self, position: b… in getRootAsMovie()
107 public static func startMovie(_ fbb: FlatBufferBuilder) -> UOffset { fbb.startTable(with: 4) } in startMovie()
109 …public static func add(mainCharacter: Offset<UOffset>, _ fbb: FlatBufferBuilder) { fbb.add(offset:… in add()
110 …public static func addVectorOf(charactersType: Offset<UOffset>, _ fbb: FlatBufferBuilder) { fbb.ad… in addVectorOf()
[all …]
Dmonster_test_generated.swift175 …public static func finish(_ fbb: FlatBufferBuilder, end: Offset<UOffset>, prefix: Bool = false) { … in finish()
176 …ce { return InParentNamespace(Table(bb: bb, position: Int32(bb.read(def: UOffset.self, position: b… in getRootAsInParentNamespace()
181 …public static func startInParentNamespace(_ fbb: FlatBufferBuilder) -> UOffset { fbb.startTable(wi… in startInParentNamespace()
182 …ParentNamespace(_ fbb: FlatBufferBuilder, start: UOffset) -> Offset<UOffset> { let end = Offset<UO… in endInParentNamespace()
183 public static func createInParentNamespace(_ fbb: FlatBufferBuilder) -> Offset<UOffset> { in createInParentNamespace()
197 …public static func finish(_ fbb: FlatBufferBuilder, end: Offset<UOffset>, prefix: Bool = false) { … in finish()
198 …) -> Monster { return Monster(Table(bb: bb, position: Int32(bb.read(def: UOffset.self, position: b… in getRootAsMonster()
203 public static func startMonster(_ fbb: FlatBufferBuilder) -> UOffset { fbb.startTable(with: 0) } in startMonster()
204 …func endMonster(_ fbb: FlatBufferBuilder, start: UOffset) -> Offset<UOffset> { let end = Offset<UO… in endMonster()
205 public static func createMonster(_ fbb: FlatBufferBuilder) -> Offset<UOffset> { in createMonster()
[all …]
DFlatBuffersStructsTests.swift101 return VPointerVec(Table(bb: bb, position: Int32(bb.read(def: UOffset.self, position: 0)))) in getRootAsCountry()
104 static func startVPointer(b: FlatBufferBuilder) -> UOffset { b.startTable(with: 1) } in startVPointer()
105 …static func finish(b: FlatBufferBuilder, s: UOffset) -> Offset<UOffset> { return Offset(offset: b.… in finish()
107 static func createVPointer(b: FlatBufferBuilder, o: Offset<UOffset>) -> Offset<UOffset> { in createVPointer()
120 static func startVPointer(b: FlatBufferBuilder) -> UOffset { b.startTable(with: 2) } in startVPointer()
122 …static func addVector(b: FlatBufferBuilder, v: Offset<UOffset>) { b.add(offset: v, at: VPointerVec… in addVector()
126 …static func finish(b: FlatBufferBuilder, s: UOffset) -> Offset<UOffset> { return Offset(offset: b.… in finish()
128 …reateVPointer(b: FlatBufferBuilder, color: Color = .green, v: Offset<UOffset>) -> Offset<UOffset> { in createVPointer()
174 return VPointerVec2(Table(bb: bb, position: Int32(bb.read(def: UOffset.self, position: 0)))) in getRootAsCountry()
177 static func startVPointer(b: FlatBufferBuilder) -> UOffset { b.startTable(with: 3) } in startVPointer()
[all …]
DFlatBuffersUnionTests.swift121 …) -> Monster { return Monster(Table(bb: bb, position: Int32(bb.read(def: UOffset.self, position: b… in getRootAsMonster()
128 static func startMonster(_ fbb: FlatBufferBuilder) -> UOffset { fbb.startTable(with: 1) } in startMonster()
129 …static func add(colors: Offset<UOffset>, _ fbb: FlatBufferBuilder) { fbb.add(offset: colors, at: 0… in add()
130 …func endMonster(_ fbb: FlatBufferBuilder, start: UOffset) -> Offset<UOffset> { let end = Offset<UO… in endMonster()
142 position: Offset<UOffset>,
145 inventory: Offset<UOffset>,
147 weapons: Offset<UOffset>,
150 path: Offset<UOffset>) -> Offset<Monster> {
179 return Monster(Table(bb: bb, position: Int32(bb.read(def: UOffset.self, position: 0)))) in getRootAsMonster()
183 offset: Offset<UOffset>,
[all …]
DFlatBuffersVectorsTests.swift87 return Numbers(Table(bb: bb, position: Int32(bb.read(def: UOffset.self, position: 0)))) in getRootAsNumbers()
95 static func createNumbersVector(b: FlatBufferBuilder, array: [Int]) -> Offset<UOffset> { in createNumbersVector()
99 static func createNumbersVector(b: FlatBufferBuilder, array: [Int32]) -> Offset<UOffset> { in createNumbersVector()
103 static func createNumbersVector(b: FlatBufferBuilder, array: [Double]) -> Offset<UOffset> { in createNumbersVector()
107 static func createNumbersVector(b: FlatBufferBuilder, array: [Float32]) -> Offset<UOffset> { in createNumbersVector()
111 static func createNumbers(b: FlatBufferBuilder, o: Offset<UOffset>) -> Offset<UOffset> { in createNumbers()
DFlatBuffersTests.swift86 return Country(Table(bb: bb, position: Int32(bb.read(def: UOffset.self, position: 0)))) in getRootAsCountry()
101 …@inlinable static func end(builder: inout FlatBufferBuilder, startOffset: UOffset) -> Offset<Count… in end()
DFlatbuffersDoubleTests.swift57 static func end(builder: inout FlatBufferBuilder, startOffset: UOffset) -> Offset<Country> { in end()
DFlatBuffersMonsterWriterTests.swift50 var offsets: [Offset<UOffset>] = [] in createMonster()
/external/flatbuffers/include/flatbuffers/
Didl.h65 TD(VECTOR, "", Offset<void>, int, int, VectorOffset, int, unused, Int, Offset<UOffset>) \
66 TD(STRUCT, "", Offset<void>, int, int, int, int, unused, Int, Offset<UOffset>) \
67 TD(UNION, "", Offset<void>, int, int, int, int, unused, Int, Offset<UOffset>)
69 TD(ARRAY, "", int, int, int, int, int, unused, Int, Offset<UOffset>)