Searched refs:pBuf (Results 1 – 6 of 6) sorted by relevance
56 void expandBufFree(ExpandBuf* pBuf) in expandBufFree() argument58 if (pBuf == NULL) in expandBufFree()61 free(pBuf->storage); in expandBufFree()62 free(pBuf); in expandBufFree()68 u1* expandBufGetBuffer(ExpandBuf* pBuf) in expandBufGetBuffer() argument70 return pBuf->storage; in expandBufGetBuffer()76 size_t expandBufGetLength(ExpandBuf* pBuf) in expandBufGetLength() argument78 return pBuf->curLen; in expandBufGetLength()86 static void ensureSpace(ExpandBuf* pBuf, int newCount) in ensureSpace() argument90 if (pBuf->curLen + newCount <= pBuf->maxLen) in ensureSpace()[all …]
29 void expandBufFree(ExpandBuf* pBuf);35 u1* expandBufGetBuffer(ExpandBuf* pBuf);36 size_t expandBufGetLength(ExpandBuf* pBuf);49 u1* expandBufAddSpace(ExpandBuf* pBuf, int gapSize);50 void expandBufAdd1(ExpandBuf* pBuf, u1 val);51 void expandBufAdd2BE(ExpandBuf* pBuf, u2 val);52 void expandBufAdd4BE(ExpandBuf* pBuf, u4 val);53 void expandBufAdd8BE(ExpandBuf* pBuf, u8 val);54 void expandBufAddUtf8String(ExpandBuf* pBuf, const u1* str);
50 INLINE FieldId dvmReadFieldId(const u1** pBuf) { return read4BE(pBuf); } in dvmReadFieldId() argument51 INLINE MethodId dvmReadMethodId(const u1** pBuf) { return read4BE(pBuf); } in dvmReadMethodId() argument52 INLINE ObjectId dvmReadObjectId(const u1** pBuf) { return read8BE(pBuf); } in dvmReadObjectId() argument53 INLINE RefTypeId dvmReadRefTypeId(const u1** pBuf) { return read8BE(pBuf); } in dvmReadRefTypeId() argument54 INLINE FrameId dvmReadFrameId(const u1** pBuf) { return read8BE(pBuf); } in dvmReadFrameId() argument
44 static void jdwpReadLocation(const u1** pBuf, JdwpLocation* pLoc) in jdwpReadLocation() argument47 pLoc->typeTag = read1(pBuf); in jdwpReadLocation()48 pLoc->classId = dvmReadObjectId(pBuf); in jdwpReadLocation()49 pLoc->methodId = dvmReadMethodId(pBuf); in jdwpReadLocation()50 pLoc->idx = read8BE(pBuf); in jdwpReadLocation()67 static u8 jdwpReadValue(const u1** pBuf, int width) in jdwpReadValue() argument72 case 1: value = read1(pBuf); break; in jdwpReadValue()73 case 2: value = read2BE(pBuf); break; in jdwpReadValue()74 case 4: value = read4BE(pBuf); break; in jdwpReadValue()75 case 8: value = read8BE(pBuf); break; in jdwpReadValue()
124 static void ebFree(ExpandBuf* pBuf) in ebFree() argument126 if (pBuf != NULL) { in ebFree()127 free(pBuf->storage); in ebFree()128 free(pBuf); in ebFree()138 static inline unsigned char* ebGetBuffer(ExpandBuf* pBuf) in ebGetBuffer() argument140 return pBuf->storage; in ebGetBuffer()146 static inline size_t ebGetLength(ExpandBuf* pBuf) in ebGetLength() argument148 return pBuf->curLen; in ebGetLength()154 static void ebClear(ExpandBuf* pBuf) in ebClear() argument156 pBuf->curLen = 0; in ebClear()[all …]
60 static u4 readUleb128(const u1** pBuf) in readUleb128() argument64 const u1* buf = *pBuf; in readUleb128()80 *pBuf = buf; in readUleb128()