28 Notify(
PSTR(
"Buffer pointer is NULL!\r\n"), 0x80);
31 for(; countDown && (*pcntdn); countDown--, (*pcntdn)--, (*pp)++)
32 pBuf[valueSize - countDown] = (**pp);
37 countDown = valueSize;
44 pBuf->valueSize = lenSize;
45 theParser.Initialize(pBuf);
49 if(!theParser.Parse(pp, pcntdn))
53 arLen = (pBuf->valueSize >= 4) ? *((uint32_t*)pBuf->pValue) : (uint32_t)(*((uint16_t*)pBuf->pValue));
58 pBuf->valueSize = valSize;
59 theParser.Initialize(pBuf);
63 for(; arLenCntdn; arLenCntdn--) {
64 if(!theParser.Parse(pp, pcntdn))
68 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)