Searched refs:pBuf (Results 1 – 3 of 3) sorted by relevance
60 void expandBufFree(ExpandBuf* pBuf) { in expandBufFree() argument61 if (pBuf == nullptr) { in expandBufFree()65 free(pBuf->storage); in expandBufFree()66 delete pBuf; in expandBufFree()72 uint8_t* expandBufGetBuffer(ExpandBuf* pBuf) { in expandBufGetBuffer() argument73 return pBuf->storage; in expandBufGetBuffer()79 size_t expandBufGetLength(ExpandBuf* pBuf) { in expandBufGetLength() argument80 return pBuf->curLen; in expandBufGetLength()87 static void ensureSpace(ExpandBuf* pBuf, int newCount) { in ensureSpace() argument88 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);
65 ObjectId ReadObjectId(const uint8_t** pBuf);