org.apache.activeio.packet.ByteArrayPacket

Here are the examples of the java api class org.apache.activeio.packet.ByteArrayPacket taken from open source projects.

1. PacketByteArrayOutputStream#allocate()

Project: activemq-activeio
File: PacketByteArrayOutputStream.java
protected Packet allocate() {
    ByteArrayPacket packet = new ByteArrayPacket(new byte[nextAllocationSize]);
    // x by 8
    nextAllocationSize <<= 3;
    return packet;
}