• Home
  • Raw
  • Download

Lines Matching refs:Int32

22   public private(set) var postion: Int32
24 public init(bb: ByteBuffer, position: Int32 = 0) {
32 public func offset(_ o: Int32) -> Int32 { in offset()
33 let vtable = postion - bb.read(def: Int32.self, position: Int(postion)) in offset()
34 return o < bb.read(def: VOffset.self, position: Int(vtable)) ? Int32(bb.read( in offset()
39 public func indirect(_ o: Int32) -> Int32 { o + bb.read(def: Int32.self, position: Int(o)) } in indirect()
43 public func string(at offset: Int32) -> String? { in string()
50 public func directString(at offset: Int32) -> String? { in directString()
52 offset += bb.read(def: Int32.self, position: Int(offset)) in directString()
53 let count = bb.read(def: Int32.self, position: Int(offset)) in directString()
54 let position = offset + Int32(MemoryLayout<Int32>.size) in directString()
62 public func readBuffer<T>(of type: T.Type, at o: Int32) -> T { in readBuffer<T>()
79 public func directRead<T>(of type: T.Type, offset o: Int32) -> T { in directRead<T>()
84 public func union<T: FlatbuffersInitializable>(_ o: Int32) -> T { in union<T: FlatbuffersInitializable>()
89 public func directUnion<T: FlatbuffersInitializable>(_ o: Int32) -> T { in directUnion<T: FlatbuffersInitializable>()
90 T.init(bb, o: o + bb.read(def: Int32.self, position: Int(o))) in directUnion<T: FlatbuffersInitializable>()
93 public func getVector<T>(at off: Int32) -> [T]? { in getVector<T>()
102 public func vector(count o: Int32) -> Int32 { in vector()
105 o += bb.read(def: Int32.self, position: Int(o)) in vector()
106 return bb.read(def: Int32.self, position: Int(o)) in vector()
112 public func vector(at o: Int32) -> Int32 { in vector()
115 return o + bb.read(def: Int32.self, position: Int(o)) + 4 in vector()
118 static public func indirect(_ o: Int32, _ fbb: ByteBuffer) -> Int32 { o + fbb.read( in indirect()
119 def: Int32.self, in indirect()
122 static public func offset(_ o: Int32, vOffset: Int32, fbb: ByteBuffer) -> Int32 { in offset()
123 let vTable = Int32(fbb.capacity) - o in offset()
124 return vTable + Int32(fbb.read( in offset()
126 position: Int(vTable + vOffset - fbb.read(def: Int32.self, position: Int(vTable))))) in offset()
129 static public func compare(_ off1: Int32, _ off2: Int32, fbb: ByteBuffer) -> Int32 { in compare()
130 let memorySize = Int32(MemoryLayout<Int32>.size) in compare()
131 let _off1 = off1 + fbb.read(def: Int32.self, position: Int(off1)) in compare()
132 let _off2 = off2 + fbb.read(def: Int32.self, position: Int(off2)) in compare()
133 let len1 = fbb.read(def: Int32.self, position: Int(_off1)) in compare()
134 let len2 = fbb.read(def: Int32.self, position: Int(_off2)) in compare()
142 return Int32(b2 - b1) in compare()
148 static public func compare(_ off1: Int32, _ key: [Byte], fbb: ByteBuffer) -> Int32 { in compare()
149 let memorySize = Int32(MemoryLayout<Int32>.size) in compare()
150 let _off1 = off1 + fbb.read(def: Int32.self, position: Int(off1)) in compare()
151 let len1 = fbb.read(def: Int32.self, position: Int(_off1)) in compare()
152 let len2 = Int32(key.count) in compare()
159 return Int32(b - Int8(byte)) in compare()