Lines Matching refs:curLen
114 size_t curLen; member
129 newBuf->curLen = 0; in ebAlloc()
162 return pBuf->curLen; in ebGetLength()
170 pBuf->curLen = 0; in ebClear()
180 if (pBuf->curLen + size > pBuf->maxLen) { in ebEnsureCapacity()
181 int newSize = pBuf->curLen + size + 128; /* oversize slightly */ in ebEnsureCapacity()
192 assert(pBuf->curLen + size <= pBuf->maxLen); in ebEnsureCapacity()
202 memcpy(pBuf->storage + pBuf->curLen, data, count); in ebAddData()
203 pBuf->curLen += count; in ebAddData()
223 pBuf->storage[pBuf->curLen++] = (unsigned char) ic; in ebReadString()
242 actual = fread(pBuf->storage + pBuf->curLen, 1, count, in); in ebReadData()
252 pBuf->curLen += count; in ebReadData()
253 assert(pBuf->curLen <= pBuf->maxLen); in ebReadData()
265 assert(pBuf->curLen > 0); in ebWriteData()
266 assert(pBuf->curLen <= pBuf->maxLen); in ebWriteData()
268 actual = fwrite(pBuf->storage, 1, pBuf->curLen, out); in ebWriteData()
269 if (actual != pBuf->curLen) { in ebWriteData()
270 fprintf(stderr, "ERROR: write %zu of %zu bytes\n", actual, pBuf->curLen); in ebWriteData()
274 pBuf->curLen = 0; in ebWriteData()