Example usage for io.netty.buffer EmptyByteBuf hasArray

List of usage examples for io.netty.buffer EmptyByteBuf hasArray

Introduction

In this page you can find the example usage for io.netty.buffer EmptyByteBuf hasArray.

Prototype

@Override
    public boolean hasArray() 

Source Link

Usage

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));
}