Lines Matching refs:m_pSyntax
61 m_pSyntax = pdfium::MakeUnique<CPDF_SyntaxParser>();
104 return m_pSyntax->m_pCryptoHandler.get();
108 return m_pSyntax->m_pFileAccess;
139 m_pSyntax->InitParser(pFileAccess, offset);
142 if (!m_pSyntax->GetCharAt(5, ch))
148 if (!m_pSyntax->GetCharAt(7, ch))
154 if (m_pSyntax->m_FileLen < m_pSyntax->m_HeaderOffset + 9)
157 m_pSyntax->RestorePos(m_pSyntax->m_FileLen - m_pSyntax->m_HeaderOffset - 9);
161 if (m_pSyntax->SearchWord("startxref", true, false, 4096)) {
162 m_SortedOffset.insert(m_pSyntax->SavePos());
163 m_pSyntax->GetKeyword();
166 CFX_ByteString xrefpos_str = m_pSyntax->GetNextWord(&bNumber);
219 m_pSyntax->m_MetadataObjnum = pMetadata->GetRefObjNum();
260 m_pSyntax->SetEncrypt(std::move(pCryptoHandler));
266 m_pSyntax->m_pCryptoHandler.reset();
293 FX_FILESIZE SavedPos = m_pSyntax->SavePos();
294 m_pSyntax->RestorePos(it.second.pos);
296 CFX_ByteString num_str = m_pSyntax->GetNextWord(&is_num);
297 m_pSyntax->RestorePos(SavedPos);
419 FX_FILESIZE dwStartPos = pos - m_pSyntax->m_HeaderOffset;
421 m_pSyntax->RestorePos(dwStartPos);
426 FX_FILESIZE SavedPos = m_pSyntax->SavePos();
436 if ((FX_FILESIZE)(dwStartPos + dwReadSize) > m_pSyntax->m_FileLen)
439 if (!m_pSyntax->ReadBlock(reinterpret_cast<uint8_t*>(buf.data()),
465 if (m_ObjectInfo[objnum].pos < m_pSyntax->m_FileLen)
472 m_pSyntax->RestorePos(SavedPos + count * recordsize);
479 m_pSyntax->RestorePos(pos);
480 if (m_pSyntax->GetKeyword() != "xref")
488 FX_FILESIZE SavedPos = m_pSyntax->SavePos();
490 CFX_ByteString word = m_pSyntax->GetNextWord(&bIsNumber);
495 m_pSyntax->RestorePos(SavedPos);
503 uint32_t count = m_pSyntax->GetDirectNum();
504 m_pSyntax->ToNextWord();
505 SavedPos = m_pSyntax->SavePos();
516 m_pSyntax->ReadBlock(reinterpret_cast<uint8_t*>(buf.data()),
540 if (m_ObjectInfo[objnum].pos < m_pSyntax->m_FileLen)
548 m_pSyntax->RestorePos(SavedPos + count * recordsize);
585 FX_FILESIZE pos = m_pSyntax->m_HeaderOffset;
592 while (pos < m_pSyntax->m_FileLen) {
596 std::min((uint32_t)(m_pSyntax->m_FileLen - pos), kBufferSize);
597 if (!m_pSyntax->m_pFileAccess->ReadBlock(buffer.data(), pos, size))
721 FX_FILESIZE obj_pos = start_pos - m_pSyntax->m_HeaderOffset;
743 m_pSyntax->RestorePos(obj_pos);
744 offset = m_pSyntax->FindTag("obj", 0);
752 pos = obj_end + m_pSyntax->m_HeaderOffset;
783 m_pSyntax->RestorePos(pos + i - m_pSyntax->m_HeaderOffset);
786 m_pSyntax->GetObject(m_pDocument, 0, 0, true);
820 FX_FILESIZE dwSavePos = m_pSyntax->SavePos();
821 CFX_ByteString strWord = m_pSyntax->GetKeyword();
825 m_pSyntax->GetNextWord(&bNumber);
829 m_pSyntax->RestorePos(dwSavePos);
919 last_trailer = m_pSyntax->m_FileLen;
921 m_SortedOffset.insert(last_trailer - m_pSyntax->m_HeaderOffset);
1233 FX_FILESIZE SavedPos = m_pSyntax->SavePos();
1234 m_pSyntax->RestorePos(pos);
1237 CFX_ByteString word = m_pSyntax->GetNextWord(&bIsNumber);
1239 m_pSyntax->RestorePos(SavedPos);
1245 m_pSyntax->RestorePos(SavedPos);
1249 word = m_pSyntax->GetNextWord(&bIsNumber);
1251 m_pSyntax->RestorePos(SavedPos);
1255 if (m_pSyntax->GetKeyword() != "obj") {
1256 m_pSyntax->RestorePos(SavedPos);
1262 m_pSyntax->RestorePos(SavedPos);
1269 m_pSyntax->RestorePos(nextoff);
1270 word = m_pSyntax->GetNextWord(&bIsNumber);
1274 word = m_pSyntax->GetNextWord(&bIsNumber);
1275 if (bIsNumber && m_pSyntax->GetKeyword() == "obj") {
1282 m_pSyntax->RestorePos(pos);
1284 if (m_pSyntax->GetKeyword() == "endobj")
1287 if (m_pSyntax->SavePos() == m_pSyntax->m_FileLen)
1290 nextoff = m_pSyntax->SavePos();
1295 m_pSyntax->RestorePos(pos);
1296 m_pSyntax->ReadBlock(pBuffer, size);
1297 m_pSyntax->RestorePos(SavedPos);
1304 FX_FILESIZE SavedPos = m_pSyntax->SavePos();
1305 m_pSyntax->RestorePos(pos);
1307 CFX_ByteString word = m_pSyntax->GetNextWord(&bIsNumber);
1309 m_pSyntax->RestorePos(SavedPos);
1313 FX_FILESIZE objOffset = m_pSyntax->SavePos();
1317 m_pSyntax->RestorePos(SavedPos);
1321 word = m_pSyntax->GetNextWord(&bIsNumber);
1323 m_pSyntax->RestorePos(SavedPos);
1328 if (m_pSyntax->GetKeyword() != "obj") {
1329 m_pSyntax->RestorePos(SavedPos);
1334 m_pSyntax->GetObject(pObjList, objnum, parser_gennum, true);
1335 m_pSyntax->SavePos();
1337 CFX_ByteString bsWord = m_pSyntax->GetKeyword();
1339 m_pSyntax->SavePos();
1341 m_pSyntax->RestorePos(SavedPos);
1355 FX_FILESIZE SavedPos = m_pSyntax->SavePos();
1356 m_pSyntax->RestorePos(pos);
1359 CFX_ByteString word = m_pSyntax->GetNextWord(&bIsNumber);
1361 m_pSyntax->RestorePos(SavedPos);
1367 m_pSyntax->RestorePos(SavedPos);
1371 word = m_pSyntax->GetNextWord(&bIsNumber);
1373 m_pSyntax->RestorePos(SavedPos);
1378 if (m_pSyntax->GetKeyword() != "obj") {
1379 m_pSyntax->RestorePos(SavedPos);
1384 m_pSyntax->GetObjectForStrict(pObjList, objnum, gennum);
1387 *pResultPos = m_pSyntax->m_Pos;
1389 m_pSyntax->RestorePos(SavedPos);
1398 if (m_pSyntax->GetKeyword() != "trailer")
1401 return ToDictionary(m_pSyntax->GetObject(m_pDocument, 0, 0, true));
1420 m_pSyntax->InitParser(pFileAccess, offset);
1421 m_pSyntax->RestorePos(m_pSyntax->m_HeaderOffset + 9);
1423 FX_FILESIZE SavedPos = m_pSyntax->SavePos();
1425 CFX_ByteString word = m_pSyntax->GetNextWord(&bIsNumber);
1430 word = m_pSyntax->GetNextWord(&bIsNumber);
1435 if (m_pSyntax->GetKeyword() != "obj") {
1436 m_pSyntax->RestorePos(SavedPos);
1441 m_pSyntax->GetObject(nullptr, objnum, gennum, true));
1447 m_pSyntax->GetNextWord(nullptr);
1463 m_pSyntax->m_pFileAccess = nullptr;
1469 FX_FILESIZE dwFirstXRefOffset = m_pSyntax->SavePos();
1525 m_pSyntax->m_MetadataObjnum = pMetadata->GetRefObjNum();
1550 uint32_t dwSaveMetadataObjnum = m_pSyntax->m_MetadataObjnum;
1551 m_pSyntax->m_MetadataObjnum = 0;
1553 m_pSyntax->RestorePos(m_LastXRefOffset - m_pSyntax->m_HeaderOffset);
1557 m_pSyntax->GetNextChar(ch);
1560 if (m_pSyntax->m_FileLen <=
1561 (FX_FILESIZE)(m_pSyntax->SavePos() + m_pSyntax->m_HeaderOffset)) {
1564 m_pSyntax->GetNextChar(ch);
1573 m_pSyntax->m_MetadataObjnum = dwSaveMetadataObjnum;
1577 m_pSyntax->m_MetadataObjnum = dwSaveMetadataObjnum;