Initializerswift-nio 2.81.0NIOCore
init(_:)
Codec.swift:803init(_ encoder: Encoder)
init(_ encoder: Encoder)
import NIOCore
The core abstractions that make up SwiftNIO.
final class MessageToByteHandler<Encoder> where Encoder : MessageToByteEncoder
A handler which turns a given MessageToByteEncoder
into a ChannelOutboundHandler
that can then be added to a ChannelPipeline
.
init(_ encoder: Encoder, desiredBufferCapacity: Int)
typealias OutboundIn = Encoder.OutboundIn
typealias OutboundOut = ByteBuffer