21 Notify(
PSTR(
"Buffer pointer is NULL!\r\n"), 0x80);
24 for(; countDown && (*pcntdn); countDown--, (*pcntdn)--, (*pp)++)
25 pBuf[valueSize - countDown] = (**pp);
30 countDown = valueSize;
37 pBuf->valueSize = lenSize;
38 theParser.Initialize(pBuf);
42 if(!theParser.Parse(pp, pcntdn))
46 arLen = (pBuf->valueSize >= 4) ? *((uint32_t*)pBuf->pValue) : (uint32_t)(*((uint16_t*)pBuf->pValue));
51 pBuf->valueSize = valSize;
52 theParser.Initialize(pBuf);
56 for(; arLenCntdn; arLenCntdn--) {
57 if(!theParser.Parse(pp, pcntdn))
61 pf(pBuf, (arLen - arLenCntdn), me);
bool Parse(uint8_t **pp, uint16_t *pcntdn)
bool Parse(uint8_t **pp, uint16_t *pcntdn, PTP_ARRAY_EL_FUNC pf, const void *me=NULL)