Instance Methodswift-nio 2.81.0NIOCore
buffer(allocator:)
RecvByteBufferAllocator.swift:93func buffer(allocator: ByteBufferAllocator) -> ByteBuffer
func buffer(allocator: ByteBufferAllocator) -> ByteBuffer
s7NIOCore31AdaptiveRecvByteBufferAllocatorV6buffer9allocatorAA0dE0VAA0deF0V_tF
What are these?763EN
import NIOCore
The core abstractions that make up SwiftNIO.
struct AdaptiveRecvByteBufferAllocator
RecvByteBufferAllocator
which will gracefully increment or decrement the buffer size on the feedback that was recorded.
struct ByteBufferAllocator
The preferred allocator for ByteBuffer
values. The allocation strategy is opaque but is currently libc’s malloc
, realloc
and free
.
struct ByteBuffer
ByteBuffer
stores contiguously allocated raw bytes. It is a random and sequential accessible sequence of zero or more bytes (octets).
init()
init(minimum: Int, initial: Int, maximum: Int)
let initial: Int
let maximum: Int
let minimum: Int
func nextBufferSize() -> Int?
mutating func record(actualReadBytes: Int) -> Bool