class UnsafeByteArrayOutputStream extends OutputStream {

    public ByteBuffer toByteBuffer() {
        return ByteBuffer.wrap(mBuffer, 0, mCount);
    }

    public  UnsafeByteArrayOutputStream();
    public  UnsafeByteArrayOutputStream(int size);

}