List of usage examples for io.netty.buffer EmptyByteBuf array
@Override public byte[] array()
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)); }