Uses of Interface
io.helidon.common.buffers.BufferData
-
Uses of BufferData in io.helidon.common.buffers
Subinterfaces of BufferData in io.helidon.common.buffersModifier and TypeInterfaceDescriptioninterfaceComposite (mutable) buffer data.Methods in io.helidon.common.buffers that return BufferDataModifier and TypeMethodDescriptionBufferData.clear()Reset read and write position and make the buffer empty.default BufferDataBufferData.copy()Copy the underlying data into a new buffer that does not retain any reference.static BufferDataBufferData.create(byte[] bytes) Fixed size buffer data fully written.static BufferDataBufferData.create(byte[] bytes, int position, int length) Fixed size buffer data fully written.static BufferDataBufferData.create(int length) Fixed size buffer data.static BufferDataBufferData.create(BufferData... data) Buffer data mapping multiple buffers.static BufferDataCreate buffer data from a string.static BufferDataBufferData.create(List<BufferData> data) Create composite buffer data from a list.static BufferDataBufferData.createReadOnly(byte[] bytes, int offset, int length) Fixed size buffer data fully written.static BufferDataBufferData.empty()Empty buffer data.DataReader.getBuffer(int length) Get the next buffer of the requested size without moving position.static BufferDataBufferData.growing(int initialLength) Growing buffer data.DataReader.readBuffer()Read next buffer.DataReader.readBuffer(int length) Read next buffer of defined size.BufferData.reset()Reset read and write position of this buffer.BufferData.rewind()Set read position to 0, so others may read the same data from the start.BufferData.trim(int x) Trim the last x bytes from a buffer (remove them).BufferData.write(int value) Write a byte.default BufferDataBufferData.writeHpackInt(int value, int prefixedInt, int bitPrefix) Write hpack integer to this buffer.default BufferDataBufferData.writeInt16(int number) Write 16-bit integer.default BufferDataBufferData.writeInt24(int number) Write 24-bit integer.default BufferDataBufferData.writeInt32(int number) Write 32-bit integer.default BufferDataBufferData.writeInt8(int number) Write 8-bit integer.default BufferDataBufferData.writeUnsignedInt32(long number) Write 32-bit unsigned integer.Methods in io.helidon.common.buffers with parameters of type BufferDataModifier and TypeMethodDescriptionCompositeBufferData.add(BufferData bufferData) Add this buffer to the list of buffers already in this composite buffer.static BufferDataBufferData.create(BufferData... data) Buffer data mapping multiple buffers.static CompositeBufferDataBufferData.createComposite(BufferData first) Composite buffer data that are mutable with initial value.default voidDataListener.data(T ctx, BufferData data) Data received or sent.default voidBufferData.write(BufferData toWrite) Write the provided buffer to this buffer.voidBufferData.write(BufferData toWrite, int length) Write n bytes from the provided buffer to this buffer.voidDataWriter.write(BufferData buffer) Write buffer, may delay writing and may write on a different thread.voidDataWriter.write(BufferData... buffers) Write buffers, may delay writing and may write on a different thread.voidDataWriter.writeNow(BufferData buffer) Write buffer to underlying transport blocking until the buffer is written.voidDataWriter.writeNow(BufferData... buffers) Write buffers to underlying transport blocking until the buffers are written.Method parameters in io.helidon.common.buffers with type arguments of type BufferDataModifier and TypeMethodDescriptionstatic BufferDataBufferData.create(List<BufferData> data) Create composite buffer data from a list.