class UnsafeByteArrayOutputStream extends OutputStream {

    @Override
    public void write(int b) {
        int newcount = mCount + 1;
        if (newcount > mBuffer.length) {
            mBuffer = Bytes.copyOf(mBuffer, Math.max(mBuffer.length << 1, newcount));
        }
        mBuffer[mCount] = (byte) b;
        mCount = newcount;
    }

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

}