use of com.firenio.buffer.ByteBuf in project baseio by generallycloud.
the class TestByteBufCopy method arrayPutJArray.
Object arrayPutJArray() {
ByteBuf buf = _array();
buf.writeBytes(jArrayData());
return buf;
}
use of com.firenio.buffer.ByteBuf in project baseio by generallycloud.
the class TestByteBufCopy method directPutJArray.
Object directPutJArray() {
ByteBuf buf = _direct();
buf.writeBytes(jArrayData());
return buf;
}
use of com.firenio.buffer.ByteBuf in project baseio by generallycloud.
the class TestByteBufCopy method arrayPutJDirect.
Object arrayPutJDirect() {
ByteBuf buf = _array();
buf.writeBytes(jDirectData());
return buf;
}
use of com.firenio.buffer.ByteBuf in project baseio by generallycloud.
the class TestByteBufCopy method arrayGetArray.
Object arrayGetArray() {
ByteBuf buf = _array();
arrayData().readBytes(buf);
return buf;
}
use of com.firenio.buffer.ByteBuf in project baseio by generallycloud.
the class TestDuplicatedHeapByteBuf method testDirect.
@Test
public void testDirect() {
ByteBuf buf = ByteBuf.direct(16);
buf.writeBytes(data.getBytes());
ByteBuf buf2 = buf.duplicate();
v(buf2);
}
Aggregations