Search in sources :

Example 41 with ByteBuf

use of com.firenio.buffer.ByteBuf in project baseio by generallycloud.

the class TestByteBufCopy method arrayPutArray.

Object arrayPutArray() {
    ByteBuf buf = _array();
    buf.writeBytes(arrayData());
    return buf;
}
Also used : ByteBuf(com.firenio.buffer.ByteBuf)

Example 42 with ByteBuf

use of com.firenio.buffer.ByteBuf in project baseio by generallycloud.

the class TestByteBufCopy method directGetArray.

Object directGetArray() {
    ByteBuf buf = _array();
    directData().readBytes(buf);
    return buf;
}
Also used : ByteBuf(com.firenio.buffer.ByteBuf)

Example 43 with ByteBuf

use of com.firenio.buffer.ByteBuf in project baseio by generallycloud.

the class TestByteBufCopy method directPutDirect.

Object directPutDirect() {
    ByteBuf buf = _direct();
    buf.writeBytes(directData());
    return buf;
}
Also used : ByteBuf(com.firenio.buffer.ByteBuf)

Example 44 with ByteBuf

use of com.firenio.buffer.ByteBuf in project baseio by generallycloud.

the class TestByteBufCopy method directPutJDirect.

Object directPutJDirect() {
    ByteBuf buf = _direct();
    buf.writeBytes(jDirectData());
    return buf;
}
Also used : ByteBuf(com.firenio.buffer.ByteBuf)

Example 45 with ByteBuf

use of com.firenio.buffer.ByteBuf in project baseio by generallycloud.

the class TestByteBufCopy method directPutArray.

Object directPutArray() {
    ByteBuf buf = _direct();
    buf.writeBytes(arrayData());
    return buf;
}
Also used : ByteBuf(com.firenio.buffer.ByteBuf)

Aggregations

ByteBuf (com.firenio.buffer.ByteBuf)58 Test (org.junit.Test)18 ByteBufAllocator (com.firenio.buffer.ByteBufAllocator)5 Channel (com.firenio.component.Channel)5 PooledByteBufAllocator (com.firenio.buffer.PooledByteBufAllocator)4 Frame (com.firenio.component.Frame)3 IoEventHandle (com.firenio.component.IoEventHandle)3 NioEventLoopGroup (com.firenio.component.NioEventLoopGroup)3 LengthValueCodec (com.firenio.codec.lengthvalue.LengthValueCodec)2 ChannelAcceptor (com.firenio.component.ChannelAcceptor)2 ChannelConnector (com.firenio.component.ChannelConnector)2 LoggerChannelOpenListener (com.firenio.component.LoggerChannelOpenListener)2 List (java.util.List)2 CountDownLatch (java.util.concurrent.CountDownLatch)2 AtomicInteger (java.util.concurrent.atomic.AtomicInteger)2 SSLEngine (javax.net.ssl.SSLEngine)2 SSLEngineResult (javax.net.ssl.SSLEngineResult)2 HandshakeStatus (javax.net.ssl.SSLEngineResult.HandshakeStatus)2 ByteBufAllocatorGroup (com.firenio.buffer.ByteBufAllocatorGroup)1 PoolState (com.firenio.buffer.PooledByteBufAllocator.PoolState)1