Searched refs:newBuf (Results 1 – 3 of 3) sorted by relevance
43 ExpandBuf* newBuf; in expandBufAlloc() local45 newBuf = (ExpandBuf*) malloc(sizeof(*newBuf)); in expandBufAlloc()46 newBuf->storage = (u1*) malloc(kInitialStorage); in expandBufAlloc()47 newBuf->curLen = 0; in expandBufAlloc()48 newBuf->maxLen = kInitialStorage; in expandBufAlloc()50 return newBuf; in expandBufAlloc()
111 ExpandBuf* newBuf = (ExpandBuf*) malloc(sizeof(ExpandBuf)); in ebAlloc() local112 if (newBuf == NULL) in ebAlloc()114 newBuf->storage = (unsigned char*) malloc(kInitialSize); in ebAlloc()115 newBuf->curLen = 0; in ebAlloc()116 newBuf->maxLen = kInitialSize; in ebAlloc()118 return newBuf; in ebAlloc()
1029 u1* newBuf; in createGuardedCopy() local1033 newBuf = (u1*)malloc(newLen); in createGuardedCopy()1034 if (newBuf == NULL) { in createGuardedCopy()1040 pat = (u2*) newBuf; in createGuardedCopy()1045 memcpy(newBuf + kGuardLen / 2, buf, len); in createGuardedCopy()1052 *(uLong*)newBuf = adler; in createGuardedCopy()1055 pExtra = (GuardExtra*) newBuf; in createGuardedCopy()1061 return newBuf + kGuardLen / 2; in createGuardedCopy()