Uses of Interface
eu.cloudnetservice.driver.network.buffer.DataBuf.Mutable
Packages that use DataBuf.Mutable
Package
Description
-
Uses of DataBuf.Mutable in eu.cloudnetservice.driver.channel
Method parameters in eu.cloudnetservice.driver.channel with type arguments of type DataBuf.MutableModifier and TypeMethodDescriptionChannelMessage.Builder.build(@NonNull UnaryOperator<DataBuf.Mutable> contentDecorator) Builds a channel message from this builder, using the given decorator function to write the content of the channel message into the buffer before building. -
Uses of DataBuf.Mutable in eu.cloudnetservice.driver.document
Methods in eu.cloudnetservice.driver.document with parameters of type DataBuf.MutableModifier and TypeMethodDescriptiondefault voidDocument.writeTo(DataBuf.Mutable dataBuf) Writes this document compact as a string to the given data buffer.voidDocument.writeTo(DataBuf.Mutable dataBuf, @NonNull SerialisationStyle style) Writes this document with the given style as a string to the given data buffer. -
Uses of DataBuf.Mutable in eu.cloudnetservice.driver.network.buffer
Methods in eu.cloudnetservice.driver.network.buffer that return DataBuf.MutableModifier and TypeMethodDescriptionDataBuf.asMutable()Converts this immutable buffer to a mutable one.DataBufFactory.createEmpty()Creates an empty buffer which can be expanded by writing to it.DataBufFactory.createWithExpectedSize(int byteSize) Creates an empty mutable data buffer which pre-allocates the specified amount of expected bytes rather than dynamically growing during write operations.static DataBuf.MutableDataBuf.empty()Creates a new, empty data buffer using the default buffer factory (currently a netty buffer factory).DataBuf.Mutable.ensureWriteable(int bytes) Ensures that this buffer has at least the given number of bytes available for writing data.DataBufFactory.mutableCopyOf(@NonNull DataBuf dataBuf) Creates a mutable copy of the given data buffer.DataBuf.Mutable.writeBoolean(boolean b) Writes the given boolean at the current writer index, increasing the index by one.DataBuf.Mutable.writeByte(byte b) Writes the given byte at the current writer index, increasing the index by one.DataBuf.Mutable.writeByteArray(byte[] b) Writes the given byte array into the buffer, prefixed by an integer containing the number of bytes following in the array.DataBuf.Mutable.writeByteArray(byte[] b, int amount) Writes the given byte array into the buffer, prefixed by an integer containing the number of bytes following in the array.DataBuf.Mutable.writeChar(char c) Writes the given UTF-16 char at the current writer index, increasing the index by two.DataBuf.Mutable.writeDataBuf(@NonNull DataBuf buf) Writes all data of the given data buffer into this data buffer starting at the current reader index of the given buffer.DataBuf.Mutable.writeDouble(double d) Writes the given double at the current writer index, increasing the index by eight.DataBuf.Mutable.writeFloat(float f) Writes the given float at the current writer index, increasing the index by four.DataBuf.Mutable.writeInt(int integer) Writes the given integer at the current writer index, increasing the index by four.DataBuf.Mutable.writeLong(long l) Writes the given long at the current writer index, increasing the index by eight.<T> DataBuf.MutableDataBuf.Mutable.writeNullable(T object, @NonNull BiConsumer<DataBuf.Mutable, T> handlerWhenNonNull) Writes the given object null-safe into this buffer.DataBuf.Mutable.writeObject(@Nullable Object obj) Writes the given object into this buffer.DataBuf.Mutable.writeShort(short s) Writes the given short at the current writer index, increasing the index by two.DataBuf.Mutable.writeString(@NonNull String string) Writes the string into the buffer.DataBuf.Mutable.writeUniqueId(@NonNull UUID uuid) Writes the unique id into the buffer.Methods in eu.cloudnetservice.driver.network.buffer with parameters of type DataBuf.MutableModifier and TypeMethodDescriptionvoidDataBufable.writeData(DataBuf.Mutable dataBuf) Writes all needed data from this object into the given data buf.Method parameters in eu.cloudnetservice.driver.network.buffer with type arguments of type DataBuf.MutableModifier and TypeMethodDescription<T> DataBuf.MutableDataBuf.Mutable.writeNullable(T object, @NonNull BiConsumer<DataBuf.Mutable, T> handlerWhenNonNull) Writes the given object null-safe into this buffer. -
Uses of DataBuf.Mutable in eu.cloudnetservice.driver.network.chunk
Methods in eu.cloudnetservice.driver.network.chunk with parameters of type DataBuf.MutableModifier and TypeMethodDescriptionvoidChunkSessionInformation.writeData(DataBuf.Mutable dataBuf) Writes all needed data from this object into the given data buf.Method parameters in eu.cloudnetservice.driver.network.chunk with type arguments of type DataBuf.MutableModifier and TypeMethodDescriptionChunkedFileQueryBuilder.configureMessageBuffer(@NonNull Consumer<DataBuf.Mutable> bufferConfigurer) A consumer that is called when the actual request is sent to the data source. -
Uses of DataBuf.Mutable in eu.cloudnetservice.driver.network.object
Methods in eu.cloudnetservice.driver.network.object that return DataBuf.MutableModifier and TypeMethodDescription<T> DataBuf.MutableObjectMapper.writeObject(DataBuf.Mutable dataBuf, T object) Writes the given object into the given data buffer using the previously registered object serializers.Methods in eu.cloudnetservice.driver.network.object with parameters of type DataBuf.MutableModifier and TypeMethodDescriptionvoidObjectSerializer.write(DataBuf.Mutable dataBuf, T object, @NonNull Type type, @NonNull ObjectMapper caller) Writes the given object into the given buffer for network transfer and later deserialization.<T> DataBuf.MutableObjectMapper.writeObject(DataBuf.Mutable dataBuf, T object) Writes the given object into the given data buffer using the previously registered object serializers.