类 DefaultDataBuffer.SlicedDefaultDataBuffer
java.lang.Object
cn.taketoday.core.io.buffer.DefaultDataBuffer
cn.taketoday.core.io.buffer.DefaultDataBuffer.SlicedDefaultDataBuffer
- 所有已实现的接口:
DataBuffer
- 封闭类:
- DefaultDataBuffer
-
构造器概要
构造器构造器说明SlicedDefaultDataBuffer(ByteBuffer byteBuffer, DefaultDataBufferFactory dataBufferFactory, int length) -
方法概要
从类继承的方法 cn.taketoday.core.io.buffer.DefaultDataBuffer
asByteBuffer, asByteBuffer, capacity, ensureWritable, equals, factory, fromEmptyByteBuffer, fromFilledByteBuffer, getByte, getNativeBuffer, hashCode, indexOf, lastIndexOf, read, read, read, readableByteBuffers, readableByteCount, readPosition, readPosition, slice, split, toByteBuffer, toByteBuffer, toString, toString, writableByteBuffers, writableByteCount, write, write, write, write, write, writePosition, writePosition从接口继承的方法 cn.taketoday.core.io.buffer.DataBuffer
asInputStream, asInputStream, asOutputStream, retainedSlice, toByteBuffer, toByteBuffer, toString, write
-
构造器详细资料
-
SlicedDefaultDataBuffer
SlicedDefaultDataBuffer(ByteBuffer byteBuffer, DefaultDataBufferFactory dataBufferFactory, int length)
-
-
方法详细资料
-
capacity
从接口复制的说明:DataBufferSet the number of bytes that this buffer can contain.If the new capacity is lower than the current capacity, the contents of this buffer will be truncated. If the new capacity is higher than the current capacity, it will be expanded.
- 指定者:
capacity在接口中DataBuffer- 覆盖:
capacity在类中DefaultDataBuffer- 参数:
newCapacity- the new capacity- 返回:
- this buffer
- 另请参阅:
-