程序包 cn.taketoday.core.io.buffer
@NonNullApi
@NonNullFields
package cn.taketoday.core.io.buffer
Generic abstraction for working with byte buffer implementations.
-
类说明Extension of
DataBufferthat allows for buffers that can be used in atry-with-resources statement.Basic abstraction over byte buffers.A dedicated iterator type that ensures the lifecycle of iteratedByteBufferelements.A factory forDataBuffers, allowing for allocation and wrapping of data buffers.AnInputStreamthat reads from aDataBuffer.Exception that indicates the cumulative number of bytes consumed from a stream ofDataBuffer's exceeded some pre-configured limit.AnOutputStreamthat writes to aDataBuffer.Utility class for working withDataBuffers.Base class for aDataBufferUtils.NestedMatcher.Matcher that supports searching for multiple delimiters.Implementation ofDataBufferUtils.Matcherthat uses the Knuth-Morris-Pratt algorithm.Contract to find delimiter(s) against one or more data buffers that can be passed one at a time to theDataBufferUtils.Matcher.match(DataBuffer)method.Matcher that can be nested withinDataBufferUtils.CompositeMatcherwhere multiple matchers advance together using the same index, one byte at a time.Matcher for a single byte delimiter.Matcher with a 2 byte delimiter that does not benefit from a Knuth-Morris-Pratt suffix-prefix table.Provides a convenient implementation of theDataBufferinterface that can be overridden to adapt the delegate.Default implementation of theDataBufferinterface that uses aByteBufferinternally. with separate read and write positions.Default implementation of theDataBufferFactoryinterface.CustomListto collect data buffers with and enforce a limit on the total number of bytes buffered.Implementation of theDataBufferinterface that wraps a Netty 5Buffer.Netty5DataBuffer.BufferComponentIterator<T extends io.netty5.buffer.BufferComponent & io.netty5.buffer.ComponentIterator.Next>Implementation of theDataBufferFactoryinterface based on a Netty 5BufferAllocator.Implementation of theDataBufferinterface that wraps a NettyByteBuf.Implementation of theDataBufferFactoryinterface based on a NettyByteBufAllocator.Extension ofDataBufferthat allows for buffers that share a memory pool.Extension ofDataBufferthat allows for buffers that can be given hints for debugging purposes.