Lines Matching refs:endstream

602         const unsigned char* endstream = start + length;  in readStream()  local
604 if (endstream[0] == kCR_PdfWhiteSpace && endstream[1] == kLF_PdfWhiteSpace) { in readStream()
605 endstream += 2; in readStream()
606 } else if (endstream[0] == kLF_PdfWhiteSpace) { in readStream()
607 endstream += 1; in readStream()
610 if (strncmp((const char*)endstream, "endstream", strlen("endstream")) != 0) { in readStream()
618 const unsigned char* endstream = (const unsigned char*)strrstrk((char*)start, (char*)end, in readStream() local
621 if (endstream) { in readStream()
622 length = endstream - start; in readStream()
623 if (*(endstream-1) == kLF_PdfWhiteSpace) length--; in readStream()
624 if (*(endstream-2) == kCR_PdfWhiteSpace) length--; in readStream()
628 const unsigned char* endstream = start + length; in readStream() local
630 if (endstream[0] == kCR_PdfWhiteSpace && endstream[1] == kLF_PdfWhiteSpace) { in readStream()
631 endstream += 2; in readStream()
632 } else if (endstream[0] == kLF_PdfWhiteSpace) { in readStream()
633 endstream += 1; in readStream()
638 endstream += strlen("endstream"); in readStream()
641 return endstream; in readStream()
670 const unsigned char* endstream = (const unsigned char*)strrstrk((char*)start, (char*)end, "EI"); in readInlineImageStream() local
671 const unsigned char* endEI = endstream ? endstream + 2 : NULL; // 2 == strlen("EI") in readInlineImageStream()
673 if (endstream) { in readInlineImageStream()
674 size_t length = endstream - start; in readInlineImageStream()
675 if (*(endstream-1) == kLF_PdfWhiteSpace) length--; in readInlineImageStream()
676 if (*(endstream-2) == kCR_PdfWhiteSpace) length--; in readInlineImageStream()