Factor out stuff for NioSocketChannelOutboundBuffer