Required Instance Methodswift-nio 2.72.0NIOCore
decoderRemoved(context:)
Called once this ByteToMessageDecoder
is removed from the ChannelPipeline
.
mutating func decoderRemoved(context: ChannelHandlerContext)
Parameters
- context
The
ChannelHandlerContext
which thisByteToMessageDecoder
belongs to.
Other requirements
Type members
associatedtype InboundOut
The type of the messages this
ByteToMessageDecoder
decodes to.
Instance members
func decode(context: ChannelHandlerContext, buffer: inout ByteBuffer
) throws -> DecodingState Decode from a
ByteBuffer
.func decodeLast(context: ChannelHandlerContext, buffer: inout ByteBuffer, seenEOF: Bool
) throws -> DecodingState Decode from a
ByteBuffer
when no more data is incoming and theByteToMessageDecoder
is about to leave the pipeline.func decoderAdded(context: ChannelHandlerContext
) Called when this
ByteToMessageDecoder
is added to theChannelPipeline
.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.