Searched refs:maxLen (Results 1 – 1 of 1) sorted by relevance
40 int maxLen; member52 newBuf->maxLen = kInitialStorage; in expandBufAlloc()87 if (pBuf->curLen + newCount <= pBuf->maxLen) { in ensureSpace()91 while (pBuf->curLen + newCount > pBuf->maxLen) { in ensureSpace()92 pBuf->maxLen *= 2; in ensureSpace()95 uint8_t* newPtr = reinterpret_cast<uint8_t*>(realloc(pBuf->storage, pBuf->maxLen)); in ensureSpace()97 LOG(FATAL) << "realloc(" << pBuf->maxLen << ") failed"; in ensureSpace()