channelRead(context:data:)
Mongo.WireMessageParser.swift:52func channelRead(context: ChannelHandlerContext, data: NIOAny) func channelRead(context: ChannelHandlerContext, data: NIOAny) s5MongoAAO0A2IOE17WireMessageParserC11channelRead7context4datay7NIOCore21ChannelHandlerContextC_AI6NIOAnyVtF What are these?4AOUBimport MongoA single-type module that declares the Mongo namespace.
import MongoIOfinal class WireMessageParserenum Mongofinal class ChannelHandlerContextEvery ChannelHandler has – when added to a ChannelPipeline – a corresponding ChannelHandlerContext which is the way ChannelHandlers can interact with other ChannelHandlers in the pipeline.
struct NIOAnyNIOAny is an opaque container for values of any type, similar to Swift’s builtin Any type. Contrary to Any the overhead of NIOAny depends on the the type of the wrapped value. Certain types that are important for the performance of a SwiftNIO application like ByteBuffer, FileRegion and AddressEnvelope<ByteBuffer> can be expected to be wrapped almost without overhead. All others will have similar performance as if they were passed as an Any as NIOAny just like Any will contain them within an existential container.
init() func channelInactive(context: ChannelHandlerContext) typealias InboundIn = ByteBuffertypealias InboundOut = Mongo.WireMessage