AdaptiveRecvByteBufferAllocator
public struct AdaptiveRecvByteBufferAllocator : RecvByteBufferAllocator
RecvByteBufferAllocator
which will gracefully increment or decrement the buffer size on the feedback that was recorded.
-
Undocumented
Declaration
Swift
public let minimum: Int
-
Undocumented
Declaration
Swift
public let maximum: Int
-
Undocumented
Declaration
Swift
public let initial: Int
-
Undocumented
Declaration
Swift
public init()
-
Undocumented
Declaration
Swift
public init(minimum: Int, initial: Int, maximum: Int)
-
Declaration
Swift
public func buffer(allocator: ByteBufferAllocator) -> ByteBuffer
-
Declaration
Swift
public mutating func record(actualReadBytes: Int) -> Bool