Instance Method (Default implementation)swift-nio 2.72.0NIOCore
shouldReclaimBytes(buffer:)
Default implementation to detect once bytes should be reclaimed.
Codec.swift:228func shouldReclaimBytes(buffer: ByteBuffer) -> Bool
Implements
func shouldReclaimBytes(buffer: ByteBuffer
) -> Bool Determine if the read bytes in the given
ByteBuffer
should be reclaimed and their associated memory freed. Be aware that reclaiming memory may involve memory copies and so is not free.