Home | History | Annotate | Download | only in lib

Lines Matching refs:bufferPtr

623 #define bufferPtr (parser->m_bufferPtr)
873 bufferPtr = buffer;
1522 positionPtr = bufferPtr;
1529 errorCode = processor(parser, bufferPtr, parseEndPtr, &bufferPtr);
1534 XmlUpdatePosition(encoding, positionPtr, bufferPtr, &position);
1535 positionPtr = bufferPtr;
1550 else if (bufferPtr == bufferEnd) {
1602 bufferPtr = buffer;
1604 positionPtr = bufferPtr;
1606 eventPtr = bufferPtr;
1607 eventEndPtr = bufferPtr;
1644 start = bufferPtr;
1651 errorCode = processor(parser, start, parseEndPtr, &bufferPtr);
1673 XmlUpdatePosition(encoding, positionPtr, bufferPtr, &position);
1674 positionPtr = bufferPtr;
1693 int neededSize = len + (int)(bufferEnd - bufferPtr);
1695 int keep = (int)(bufferPtr - buffer);
1703 if (keep < bufferPtr - buffer) {
1704 int offset = (int)(bufferPtr - buffer) - keep;
1705 memmove(buffer, &buffer[offset], bufferEnd - bufferPtr + keep);
1707 bufferPtr -= offset;
1710 memmove(buffer, bufferPtr, bufferEnd - bufferPtr);
1711 bufferEnd = buffer + (bufferEnd - bufferPtr);
1712 bufferPtr = buffer;
1717 int bufferSize = (int)(bufferLim - bufferPtr);
1730 if (bufferPtr) {
1731 int keep = (int)(bufferPtr - buffer);
1734 memcpy(newBuf, &bufferPtr[-keep], bufferEnd - bufferPtr + keep);
1737 bufferEnd = buffer + (bufferEnd - bufferPtr) + keep;
1738 bufferPtr = buffer + keep;
1741 bufferEnd = newBuf + (bufferEnd - bufferPtr);
1742 bufferPtr = buffer = newBuf;
1745 if (bufferPtr) {
1746 memcpy(newBuf, bufferPtr, bufferEnd - bufferPtr);
1749 bufferEnd = newBuf + (bufferEnd - bufferPtr);
1750 bufferPtr = buffer = newBuf;
1800 errorCode = processor(parser, bufferPtr, parseEndPtr, &bufferPtr);
1822 XmlUpdatePosition(encoding, positionPtr, bufferPtr, &position);
1823 positionPtr = bufferPtr;