List of usage examples for io.netty.buffer EmptyByteBuf hasArray
@Override public boolean hasArray()
From source file:io.netty.buffer.EmptyByteBufTest.java
License:Apache License
@Test public void testArray() { EmptyByteBuf empty = new EmptyByteBuf(UnpooledByteBufAllocator.DEFAULT); assertThat(empty.hasArray(), is(true)); assertThat(empty.array().length, is(0)); assertThat(empty.arrayOffset(), is(0)); }