Lines Matching refs:curLen
40 int curLen; member
52 newBuf->curLen = 0; in expandBufAlloc()
80 return pBuf->curLen; in expandBufGetLength()
88 if (pBuf->curLen + newCount <= pBuf->maxLen) { in ensureSpace()
92 while (pBuf->curLen + newCount > pBuf->maxLen) { in ensureSpace()
111 gapStart = pBuf->storage + pBuf->curLen; in expandBufAddSpace()
113 pBuf->curLen += gapSize; in expandBufAddSpace()
123 *(pBuf->storage + pBuf->curLen) = val; in expandBufAdd1()
124 pBuf->curLen++; in expandBufAdd1()
132 Set2BE(pBuf->storage + pBuf->curLen, val); in expandBufAdd2BE()
133 pBuf->curLen += sizeof(val); in expandBufAdd2BE()
141 Set4BE(pBuf->storage + pBuf->curLen, val); in expandBufAdd4BE()
142 pBuf->curLen += sizeof(val); in expandBufAdd4BE()
150 Set8BE(pBuf->storage + pBuf->curLen, val); in expandBufAdd8BE()
151 pBuf->curLen += sizeof(val); in expandBufAdd8BE()
172 SetUtf8String(pBuf->storage + pBuf->curLen, s, strLen); in expandBufAddUtf8String()
173 pBuf->curLen += sizeof(uint32_t) + strLen; in expandBufAddUtf8String()
178 SetUtf8String(pBuf->storage + pBuf->curLen, s.data(), s.size()); in expandBufAddUtf8String()
179 pBuf->curLen += sizeof(uint32_t) + s.size(); in expandBufAddUtf8String()