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.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.document.empty
Methods in eu.cloudnetservice.driver.document.empty with parameters of type DataBuf.MutableModifier and TypeMethodDescriptionvoidEmptyDocument.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.document.gson
Methods in eu.cloudnetservice.driver.document.gson with parameters of type DataBuf.MutableModifier and TypeMethodDescriptionvoidImmutableGsonDocument.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 amount of bytes unused 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 amount 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 amount 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 by first writing the most significant bits of the id followed by the last significant bits of the id.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
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.chunk.data
Methods in eu.cloudnetservice.driver.network.chunk.data with parameters of type DataBuf.MutableModifier and TypeMethodDescriptionvoidChunkSessionInformation.writeData(DataBuf.Mutable dataBuf) Writes all needed data from this object into the given data buf. -
Uses of DataBuf.Mutable in eu.cloudnetservice.driver.network.chunk.defaults.builder
Fields in eu.cloudnetservice.driver.network.chunk.defaults.builder with type parameters of type DataBuf.MutableModifier and TypeFieldDescriptionprivate Consumer<DataBuf.Mutable> DefaultChunkedFileQueryBuilder.messageBufferConfiguratorMethod parameters in eu.cloudnetservice.driver.network.chunk.defaults.builder with type arguments of type DataBuf.MutableModifier and TypeMethodDescriptionDefaultChunkedFileQueryBuilder.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.netty.buffer
Classes in eu.cloudnetservice.driver.network.netty.buffer that implement DataBuf.MutableModifier and TypeClassDescriptionclassRepresents the default implementation of a mutable data buf, wrapping a netty byte buffer.Methods in eu.cloudnetservice.driver.network.netty.buffer that return DataBuf.MutableModifier and TypeMethodDescriptionNettyImmutableDataBuf.asMutable()Converts this immutable buffer to a mutable one.NettyDataBufFactory.createEmpty()Creates an empty buffer which can be expanded by writing to it.NettyDataBufFactory.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.NettyMutableDataBuf.ensureWriteable(int bytes) Ensures that this buffer has at least the given amount of bytes unused for writing data.NettyDataBufFactory.mutableCopyOf(@NonNull DataBuf dataBuf) Creates a mutable copy of the given data buffer.NettyMutableDataBuf.writeBoolean(boolean b) Writes the given boolean at the current writer index, increasing the index by one.NettyMutableDataBuf.writeByte(byte b) Writes the given byte at the current writer index, increasing the index by one.NettyMutableDataBuf.writeByteArray(byte[] b) Writes the given byte array into the buffer, prefixed by an integer containing the amount of bytes following in the array.NettyMutableDataBuf.writeByteArray(byte[] b, int amount) Writes the given byte array into the buffer, prefixed by an integer containing the amount of bytes following in the array.NettyMutableDataBuf.writeChar(char c) Writes the given UTF-16 char at the current writer index, increasing the index by two.NettyMutableDataBuf.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.NettyMutableDataBuf.writeDouble(double d) Writes the given double at the current writer index, increasing the index by eight.NettyMutableDataBuf.writeFloat(float f) Writes the given float at the current writer index, increasing the index by four.NettyMutableDataBuf.writeInt(int integer) Writes the given integer at the current writer index, increasing the index by four.NettyMutableDataBuf.writeLong(long l) Writes the given long at the current writer index, increasing the index by eight.NettyMutableDataBuf.writeNullable(T object, @NonNull BiConsumer<DataBuf.Mutable, T> handlerWhenNonNull) Writes the given object null-safe into this buffer.NettyMutableDataBuf.writeObject(@Nullable Object obj) Writes the given object into this buffer.NettyMutableDataBuf.writeShort(short s) Writes the given short at the current writer index, increasing the index by two.NettyMutableDataBuf.writeString(@NonNull String string) Writes the string into the buffer.NettyMutableDataBuf.writeUniqueId(@NonNull UUID uuid) Writes the unique id into the buffer by first writing the most significant bits of the id followed by the last significant bits of the id.Method parameters in eu.cloudnetservice.driver.network.netty.buffer with type arguments of type DataBuf.MutableModifier and TypeMethodDescriptionNettyMutableDataBuf.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.rpc.defaults.handler.util
Methods in eu.cloudnetservice.driver.network.rpc.defaults.handler.util with parameters of type DataBuf.MutableModifier and TypeMethodDescriptionRPCExceptionUtil.serializeHandlingException(DataBuf.Mutable target, @NonNull Throwable throwable) Serializes the thrown handling exception into the given target data buffer.private static voidRPCExceptionUtil.serializeStacktraceElement(DataBuf.Mutable target, @NonNull StackTraceElement element) Serializes a single stacktrace element into the given target data buffer. -
Uses of DataBuf.Mutable in eu.cloudnetservice.driver.network.rpc.defaults.object
Methods in eu.cloudnetservice.driver.network.rpc.defaults.object that return DataBuf.MutableModifier and TypeMethodDescription<T> DataBuf.MutableDefaultObjectMapper.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.rpc.defaults.object with parameters of type DataBuf.MutableModifier and TypeMethodDescription<T> DataBuf.MutableDefaultObjectMapper.writeObject(DataBuf.Mutable dataBuf, T object) Writes the given object into the given data buffer using the previously registered object serializers. -
Uses of DataBuf.Mutable in eu.cloudnetservice.driver.network.rpc.defaults.object.data
Methods in eu.cloudnetservice.driver.network.rpc.defaults.object.data with parameters of type DataBuf.MutableModifier and TypeMethodDescriptionvoidDataClassCodec.serialize(DataBuf.Mutable target, @NonNull ObjectMapper mapper, @NonNull Object instance) Serializes the target object of this codec from the given instance into the given buffer using the given object mapper to serialize the field values.voidDataClassSerializer.write(DataBuf.Mutable dataBuf, @NonNull Object object, @NonNull Type type, @NonNull ObjectMapper caller) Writes the given object into the given buffer for network transfer and later deserialization. -
Uses of DataBuf.Mutable in eu.cloudnetservice.driver.network.rpc.defaults.object.serializers
Fields in eu.cloudnetservice.driver.network.rpc.defaults.object.serializers with type parameters of type DataBuf.MutableModifier and TypeFieldDescriptionprivate final BiConsumer<DataBuf.Mutable, T> FunctionalObjectSerializer.writerMethods in eu.cloudnetservice.driver.network.rpc.defaults.object.serializers with parameters of type DataBuf.MutableModifier and TypeMethodDescriptionvoidCollectionObjectSerializer.write(DataBuf.Mutable dataBuf, @NonNull Collection<?> object, @NonNull Type type, @NonNull ObjectMapper caller) Writes the given object into the given buffer for network transfer and later deserialization.voidDataBufableObjectSerializer.write(DataBuf.Mutable dataBuf, @NonNull DataBufable object, @NonNull Type type, @NonNull ObjectMapper caller) Writes the given object into the given buffer for network transfer and later deserialization.voidDataBufObjectSerializer.write(DataBuf.Mutable dataBuf, @NonNull DataBuf object, @NonNull Type type, @NonNull ObjectMapper caller) Writes the given object into the given buffer for network transfer and later deserialization.voidDocumentObjectSerializer.write(DataBuf.Mutable dataBuf, @NonNull Document object, @NonNull Type type, @NonNull ObjectMapper caller) Writes the given object into the given buffer for network transfer and later deserialization.voidEnumObjectSerializer.write(DataBuf.Mutable dataBuf, @NonNull Enum<?> object, @NonNull Type type, @NonNull ObjectMapper caller) Writes the given object into the given buffer for network transfer and later deserialization.voidFunctionalObjectSerializer.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.voidMapObjectSerializer.write(DataBuf.Mutable dataBuf, @NonNull Map<?, ?> object, @NonNull Type type, @NonNull ObjectMapper caller) Writes the given object into the given buffer for network transfer and later deserialization.voidOptionalObjectSerializer.write(DataBuf.Mutable dataBuf, @NonNull Optional<?> object, @NonNull Type type, @NonNull ObjectMapper caller) Writes the given object into the given buffer for network transfer and later deserialization.voidPathObjectSerializer.write(DataBuf.Mutable dataBuf, @NonNull Path object, @NonNull Type type, @NonNull ObjectMapper caller) Writes the given object into the given buffer for network transfer and later deserialization.voidPatternObjectSerializer.write(DataBuf.Mutable dataBuf, @NonNull Pattern object, @NonNull Type type, @NonNull ObjectMapper caller) Writes the given object into the given buffer for network transfer and later deserialization.voidUUIDObjectSerializer.write(DataBuf.Mutable dataBuf, @NonNull UUID object, @NonNull Type type, @NonNull ObjectMapper caller) Writes the given object into the given buffer for network transfer and later deserialization.Method parameters in eu.cloudnetservice.driver.network.rpc.defaults.object.serializers with type arguments of type DataBuf.MutableModifier and TypeMethodDescriptionstatic <T> @NonNull FunctionalObjectSerializer<T> FunctionalObjectSerializer.of(@NonNull Function<DataBuf, T> reader, @NonNull BiConsumer<DataBuf.Mutable, T> writer) Constructs a new functional object serializer instance.Constructor parameters in eu.cloudnetservice.driver.network.rpc.defaults.object.serializers with type arguments of type DataBuf.MutableModifierConstructorDescriptionprivateFunctionalObjectSerializer(@NonNull Function<DataBuf, T> reader, @NonNull BiConsumer<DataBuf.Mutable, T> writer) Constructs a new functional object serializer instance. -
Uses of DataBuf.Mutable in eu.cloudnetservice.driver.network.rpc.object
Methods in eu.cloudnetservice.driver.network.rpc.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.rpc.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.