Lines Matching refs:Int
31 var capacity: Int
34 init(count: Int, alignment: Int) {
41 init(memory: UnsafeMutableRawPointer, capacity: Int, unowned: Bool) {
54 func copy(from ptr: UnsafeRawPointer, count: Int) { in copy()
62 func initialize(for size: Int) { in initialize()
72 internal func reallocate(_ size: Int, writerSize: Int, alignment: Int) { in reallocate()
95 private var _writerSize: Int = 0
99 internal var writerIndex: Int { _storage.capacity &- _writerSize }
102 public var reader: Int { writerIndex }
108 public var capacity: Int { _storage.capacity }
134 init(initialSize size: Int) {
147 count: Int)
160 public init(assumingMemoryBound memory: UnsafeMutableRawPointer, capacity: Int) {
169 internal init(memory: UnsafeMutableRawPointer, count: Int) {
180 internal init(memory: UnsafeMutableRawPointer, count: Int, removing removeBytes: Int) {
189 mutating func fill(padding: Int) { in fill()
211 mutating func push<T: NativeStruct>(struct value: T, size: Int) { in push<T: NativeStruct>()
223 mutating func push<T: Scalar>(value: T, len: Int) { in push<T: Scalar>()
234 mutating func push(string str: String, len: Int) { in push()
252 len: Int) -> Bool
270 func write<T>(value: T, index: Int, direct: Bool = false) { in write<T>()
284 mutating func ensureSpace(size: Int) -> Int { in ensureSpace()
295 mutating internal func pop(_ size: Int) { in pop()
319 public func read<T>(def: T.Type, position: Int) -> T { in read<T>()
335 let _index = Int(index)
336 let _count = Int(count)
354 let _index = Int(index)
355 let _count = Int(count)
364 public func duplicate(removing removeBytes: Int = 0) -> ByteBuffer { in duplicate()