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()
1078 u1* newBuf = debugAlloc(newLen); in create() local1081 u2* pat = (u2*) newBuf; in create()1087 memcpy(newBuf + kGuardLen / 2, buf, len); in create()1094 *(uLong*)newBuf = adler; in create()1097 GuardedCopy* pExtra = reinterpret_cast<GuardedCopy*>(newBuf); in create()1103 return newBuf + kGuardLen / 2; in create()