Searched refs:pBuf (Results 1 – 3 of 3) sorted by relevance
59 void expandBufFree(ExpandBuf* pBuf) { in expandBufFree() argument60 if (pBuf == NULL) { in expandBufFree()64 free(pBuf->storage); in expandBufFree()65 delete pBuf; in expandBufFree()71 uint8_t* expandBufGetBuffer(ExpandBuf* pBuf) { in expandBufGetBuffer() argument72 return pBuf->storage; in expandBufGetBuffer()78 size_t expandBufGetLength(ExpandBuf* pBuf) { in expandBufGetLength() argument79 return pBuf->curLen; in expandBufGetLength()86 static void ensureSpace(ExpandBuf* pBuf, int newCount) { in ensureSpace() argument87 if (pBuf->curLen + newCount <= pBuf->maxLen) { in ensureSpace()[all …]
37 void expandBufFree(ExpandBuf* pBuf);43 uint8_t* expandBufGetBuffer(ExpandBuf* pBuf);44 size_t expandBufGetLength(ExpandBuf* pBuf);57 uint8_t* expandBufAddSpace(ExpandBuf* pBuf, int gapSize);58 void expandBufAdd1(ExpandBuf* pBuf, uint8_t val);59 void expandBufAdd2BE(ExpandBuf* pBuf, uint16_t val);60 void expandBufAdd4BE(ExpandBuf* pBuf, uint32_t val);61 void expandBufAdd8BE(ExpandBuf* pBuf, uint64_t val);62 void expandBufAddUtf8String(ExpandBuf* pBuf, const char* s);63 void expandBufAddUtf8String(ExpandBuf* pBuf, const std::string& s);
52 ObjectId ReadObjectId(const uint8_t** pBuf);