Example usage for io.netty.buffer ByteBufUtil getBytes

List of usage examples for io.netty.buffer ByteBufUtil getBytes

Introduction

In this page you can find the example usage for io.netty.buffer ByteBufUtil getBytes.

Prototype

public static byte[] getBytes(ByteBuf buf, int start, int length, boolean copy) 

Source Link

Document

Return an array of the underlying storage from buf into a byte array.

Usage

From source file:org.apache.bookkeeper.client.impl.LedgerEntryImpl.java

License:Apache License

/**
 * {@inheritDoc}//from  w w  w  .  java 2  s. co  m
 */
@Override
public byte[] getEntryBytes() {
    return ByteBufUtil.getBytes(entryBuf, entryBuf.readerIndex(), entryBuf.readableBytes(), false);
}