Required Instance Methodswift-nio 2.72.0NIOCore
encode(data:out:)
Called once there is data to encode.
Codec.swift:745func encode(data: OutboundIn, out: inout ByteBuffer) throws
Called once there is data to encode.
Codec.swift:745func encode(data: OutboundIn, out: inout ByteBuffer) throws
s7NIOCore20MessageToByteEncoderP6encode4data3outy10OutboundInQz_AA0D6BufferVztKF
What are these?
FNV24: [2Z6CF]
import NIOCore
The core abstractions that make up SwiftNIO.
protocol MessageToByteEncoder
A protocol for straightforward encoders which encode custom messages to ByteBuffer
s. To add a MessageToByteEncoder
to a ChannelPipeline
, use channel.pipeline.addHandler(MessageToByteHandler(myEncoder)
.
associatedtype OutboundIn
struct ByteBuffer
ByteBuffer
stores contiguously allocated raw bytes. It is a random and sequential accessible sequence of zero or more bytes (octets).