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