p_->numberOfSamples = 0;
// Current params: 8 bytes, no samples, buffer size n/10 bytes.
+ // Buffer size is always at least 15MB:
+ if (estimatedInputLength < TEXTCOLLECTION_DEFAULT_INPUT_LENGTH)
+ estimatedInputLength = TEXTCOLLECTION_DEFAULT_INPUT_LENGTH;
p_->sa = new CSA::RLCSABuilder(8, 0, estimatedInputLength/10);
assert(p_->sa->isOk());