Required Instance Methodswift-nio 2.72.0NIOCore
record(actualReadBytes:)
Records the actual number of bytes that were read by the last socket call.
RecvByteBufferAllocator.swift:28mutating func record(actualReadBytes: Int) -> Bool
Parameters
- actualReadBytes
The number of bytes that were used by the previous allocated
ByteBuffer
Returns
true
if the next call to buffer
may return a bigger buffer then the last call to buffer
.
Other requirements
Instance members
func buffer(allocator: ByteBufferAllocator
) -> ByteBuffer Allocates a new
ByteBuffer
that will be used to read bytes from aChannel
.func nextBufferSize(
) -> Int? Returns the next size of buffer which should be returned by
buffer(allocator:)
.