use of com.firenio.buffer.ByteBuf in project baseio by generallycloud.
the class TestBytebufPut method testput1.
@Test
public void testput1() {
ByteBuf src = ByteBuf.direct(1024);
src.writeBytes(data.getBytes());
ByteBuf dst = ByteBuf.direct(data1.length());
dst.writeBytes(src);
v(dst);
}
use of com.firenio.buffer.ByteBuf in project baseio by generallycloud.
the class TestBytebufPut method testPut7.
@Test
public void testPut7() {
ByteBuf src = ByteBuf.direct(1024);
src.writeBytes("hello;hello;".getBytes());
ByteBuf dst = ByteBuf.heap(data1.length());
dst.writeBytes(src);
v(dst);
}
use of com.firenio.buffer.ByteBuf in project baseio by generallycloud.
the class TestBytebufPut method testPut3.
@Test
public void testPut3() {
ByteBuf src = ByteBuf.heap(1024);
src.writeBytes(data.getBytes());
ByteBuf dst = ByteBuf.direct(data1.length());
dst.writeBytes(src);
v(dst);
}
use of com.firenio.buffer.ByteBuf in project baseio by generallycloud.
the class TestBytebufPut method testPut5.
@Test
public void testPut5() {
ByteBuf src = ByteBuf.heap(1024);
src.writeBytes("hello;hello;".getBytes());
ByteBuf dst = ByteBuf.heap(data1.length());
dst.writeBytes(src);
v(dst);
}
use of com.firenio.buffer.ByteBuf in project baseio by generallycloud.
the class TestBytebufPut method testPut6.
@Test
public void testPut6() {
ByteBuf src = ByteBuf.direct(1024);
src.writeBytes("hello;hello;".getBytes());
ByteBuf dst = ByteBuf.heap(1024);
dst.writeBytes(src);
v(dst);
}
Aggregations