Searched refs:maxLen (Results 1 – 1 of 1) sorted by relevance
41 int maxLen; member53 newBuf->maxLen = kInitialStorage; in expandBufAlloc()88 if (pBuf->curLen + newCount <= pBuf->maxLen) { in ensureSpace()92 while (pBuf->curLen + newCount > pBuf->maxLen) { in ensureSpace()93 pBuf->maxLen *= 2; in ensureSpace()96 uint8_t* newPtr = reinterpret_cast<uint8_t*>(realloc(pBuf->storage, pBuf->maxLen)); in ensureSpace()98 LOG(FATAL) << "realloc(" << pBuf->maxLen << ") failed"; in ensureSpace()