class CronetWritableBufferAllocator implements WritableBufferAllocator {

  @Override
  public WritableBuffer allocate(int capacityHint) {
    capacityHint = Math.min(MAX_BUFFER, capacityHint);
    return new CronetWritableBuffer(ByteBuffer.allocateDirect(capacityHint), capacityHint);
  }

    CronetWritableBufferAllocator();

}