• Home
  • Raw
  • Download

Lines Matching refs:_bb

39   @usableFromInline internal var _bb: ByteBuffer  variable
55 _bb.alignment = _minAlignment
60 public var size: UOffset { _bb.size }
69 bytes: _bb.memory.advanced(by: _bb.writerIndex),
70 count: _bb.capacity &- _bb.writerIndex)
79 start: _bb.memory.assumingMemoryBound(to: UInt8.self),
80 count: _bb.capacity)
89 return _bb.underlyingBytes
96 public var buffer: ByteBuffer { _bb }
105 memory: _bb.memory.advanced(by: _bb.reader),
106 count: Int(_bb.size))
129 _bb = ByteBuffer(initialSize: Int(initialSize))
139 _bb.clear() in clear()
154 let start = _bb.capacity &- Int(table.o) in require()
155 let startTable = start &- Int(_bb.read(def: Int32.self, position: start)) in require()
156 let isOkay = _bb.read( in require()
195 _bb.push(string: fileId, len: 4)
224 if prefix { push(element: _bb.size) }
243 return _bb.size in startTable()
265 _bb.fill(padding: _max) in endTable()
266 _bb.write( in endTable()
268 index: _bb.writerIndex &+ sizeofVoffset, in endTable()
270 _bb.write(value: VOffset(_max), index: _bb.writerIndex, direct: true) in endTable()
277 let _index = (_bb.writerIndex &+ Int(loaded.position)) in endTable()
278 _bb.write( in endTable()
285 let vt_use = _bb.size in endTable()
289 let vt2 = _bb.memory.advanced(by: _bb.writerIndex) in endTable()
293 let position = _bb.capacity &- Int(table) in endTable()
294 let vt1 = _bb.memory.advanced(by: position) in endTable()
295 let len1 = _bb.read(def: Int16.self, position: position) in endTable()
304 let space = _bb.capacity &- vTableOff in endTable()
305 _bb.write(value: Int32(offset &- vTableOff), index: space, direct: true) in endTable()
306 _bb.pop(_bb.capacity &- space) in endTable()
308 _bb.write(value: Int32(vt_use &- vTableOffset), index: Int(vTableOffset)) in endTable()
309 _vtables.append(_bb.size) in endTable()
355 _bb.fill(padding: Int(padding( in preAlign()
356 bufSize: _bb.size &+ UOffset(len), in preAlign()
377 return _bb.size &- off &+ UInt32(size) in refer()
472 _bb.push(elements: elements)
516 _bb.push(value: e.value, len: T.byteSize)
640 offset: _bb.size,
666 _bb.push(struct: s, size: size)
667 return Offset(offset: _bb.size)
690 _bb.fill(padding: 1) in create()
691 _bb.push(string: str, len: len) in create()
693 return Offset(offset: _bb.size) in create()
812 _bb.push(value: element, len: size) in push<T: Scalar>()
813 return _bb.size in push<T: Scalar>()