BufferState

BufferState represents the state of either the inbound, or the outbound NIOAsyncTestingChannel buffer.

AsyncTestingChannel.swift:126
iOS
13.0+
macOS
10.15+
tvOS
13.0+
watchOS
6.0+
enum BufferState

These buffers contain data that travelled the ChannelPipeline all the way through..

If the last ChannelHandler explicitly (by calling fireChannelRead) or implicitly (by not implementing channelRead) sends inbound data into the end of the NIOAsyncTestingChannel, it will be held in the NIOAsyncTestingChannel’s inbound buffer. Similarly for write on the outbound side. The state of the respective buffer will be returned from writeInbound(_:)/writeOutbound(_:) as a BufferState.