Can somebody explain the difference between slice() and retainSlice() from https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/core/io/buffer/DataBuffer.html ?
I mean: what is a retained slice, in contrast to a normal slice? Because both methods create a new, shared buffer.
My goal is to slice a buffer for later logging. Should I then use slice, or retain slice?