add convenience method wrap() to DataBuffer
This commit is contained in:
parent
a2dab0623c
commit
0ac2d049c8
2 changed files with 4 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
|||
group = org.xbib
|
||||
name = net
|
||||
version = 3.3.0
|
||||
version = 3.3.1
|
||||
|
||||
org.gradle.warning.mode = ALL
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue