public enum IOData

IOData unifies standard SwiftNIO types that are raw bytes of data; currently ByteBuffer and FileRegion.

Many ChannelHandlers receive or emit bytes and in most cases this can be either a ByteBuffer or a FileRegion from disk. To still form a well-typed ChannelPipeline such handlers should receive and emit value of type IOData.