public void create(int bufferSize) {
        int kMinBlockSize = 1;
        if (bufferSize < kMinBlockSize)
            bufferSize = kMinBlockSize;
        if (_buffer != null && _bufferSize == bufferSize)
            return;
        _bufferSize = bufferSize;
        _buffer = new byte[bufferSize];
    }