add convenience method wrap() to DataBuffer

This commit is contained in:
Jörg Prante 2023-08-07 16:03:43 +02:00
parent a2dab0623c
commit 0ac2d049c8
2 changed files with 4 additions and 1 deletions

View file

@ -1,5 +1,5 @@
group = org.xbib
name = net
version = 3.3.0
version = 3.3.1
org.gradle.warning.mode = ALL

View file

@ -337,4 +337,7 @@ public interface DataBuffer extends Releasable {
*/
String toString(int index, int length, Charset charset);
default DataBuffer wrap(DataBufferFactory dataBufferFactory, byte[] bytes) {
return dataBufferFactory.wrap(bytes);
}
}