Lines Matching defs:objNum
86 FX_LPVOID objnum;
88 m_ObjectStreamMap.GetNextAssoc(pos, objnum, (void*&)pStream);
320 FX_FILESIZE CPDF_Parser::GetObjectOffset(FX_DWORD objnum)
322 if (objnum >= (FX_DWORD)m_CrossRef.GetSize()) {
325 if (m_V5Type[objnum] == 1) {
326 return m_CrossRef[objnum];
328 if (m_V5Type[objnum] == 2) {
329 return m_CrossRef[(FX_INT32)m_CrossRef[objnum]];
465 FX_DWORD objnum = start_objnum + block * 1024 + i;
468 m_CrossRef.SetAtGrow(objnum, 0);
469 m_V5Type.SetAtGrow(objnum, 0);
480 m_CrossRef.SetAtGrow(objnum, offset);
485 m_ObjVersion.SetAtGrow(objnum, version);
486 if (m_CrossRef[objnum] < m_Syntax.m_FileLen) {
487 FX_LPVOID pResult = FXSYS_bsearch(&m_CrossRef[objnum], m_SortedOffset.GetData(), m_SortedOffset.GetSize(), sizeof(FX_FILESIZE), _CompareFileSize);
489 objnum]);
492 m_V5Type.SetAtGrow(objnum, 1);
549 FX_DWORD objnum = start_objnum + block * 1024 + i;
553 objnum = 0;
561 objnum = 0;
564 m_CrossRef.SetAtGrow(objnum, 0);
565 m_V5Type.SetAtGrow(objnum, 0);
576 m_CrossRef.SetAtGrow(objnum, offset);
581 m_ObjVersion.SetAtGrow(objnum, version);
582 if (m_CrossRef[objnum] < m_Syntax.m_FileLen) {
583 FX_LPVOID pResult = FXSYS_bsearch(&m_CrossRef[objnum], m_SortedOffset.GetData(), m_SortedOffset.GetSize(), sizeof(FX_FILESIZE), _CompareFileSize);
585 m_SortedOffset.Add(m_CrossRef[objnum]);
588 m_V5Type.SetAtGrow(objnum, 1);
630 FX_DWORD objnum = 0, gennum = 0;
682 objnum = byte - '0';
696 objnum = objnum * 10 + byte - '0';
739 objnum = gennum;
772 if (objnum > 0x1000000) {
783 CPDF_Object *pObject = ParseIndirectObjectAtByStrict(m_pDocument, obj_pos, objnum, NULL, &obj_end);
820 if (m_CrossRef.GetSize() > (FX_INT32)objnum && m_CrossRef[objnum]) {
822 FX_DWORD oldgen = m_ObjVersion.GetAt(objnum);
823 m_CrossRef[objnum] = obj_pos;
824 m_ObjVersion.SetAt(objnum, (FX_SHORT)gennum);
830 m_CrossRef.SetAtGrow(objnum, obj_pos);
831 m_V5Type.SetAtGrow(objnum, 1);
832 m_ObjVersion.SetAtGrow(objnum, (FX_SHORT)gennum);
1166 FX_BOOL CPDF_Parser::IsFormStream(FX_DWORD objnum, FX_BOOL& bForm)
1169 if (objnum >= (FX_DWORD)m_CrossRef.GetSize()) {
1172 if (m_V5Type[objnum] == 0) {
1175 if (m_V5Type[objnum] == 2) {
1178 FX_FILESIZE pos = m_CrossRef[objnum];
1193 CPDF_Object* CPDF_Parser::ParseIndirectObject(CPDF_IndirectObjects* pObjList, FX_DWORD objnum, PARSE_CONTEXT* pContext)
1195 if (objnum >= (FX_DWORD)m_CrossRef.GetSize()) {
1198 if (m_V5Type[objnum] == 1 || m_V5Type[objnum] == 255) {
1199 FX_FILESIZE pos = m_CrossRef[objnum];
1203 return ParseIndirectObjectAt(pObjList, pos, objnum, pContext);
1205 if (m_V5Type[objnum] == 2) {
1206 CPDF_StreamAcc* pObjStream = GetObjectStream((FX_DWORD)m_CrossRef[objnum]);
1219 if (thisnum == objnum) {
1230 CPDF_StreamAcc* CPDF_Parser::GetObjectStream(FX_DWORD objnum)
1233 if (m_ObjectStreamMap.Lookup((void*)(FX_UINTPTR)objnum, (void*&)pStreamAcc)) {
1236 const CPDF_Stream* pStream = m_pDocument ? (CPDF_Stream*)m_pDocument->GetIndirectObject(objnum) : NULL;
1242 m_ObjectStreamMap.SetAt((void*)(FX_UINTPTR)objnum, pStreamAcc);
1245 FX_FILESIZE CPDF_Parser::GetObjectSize(FX_DWORD objnum)
1247 if (objnum >= (FX_DWORD)m_CrossRef.GetSize()) {
1250 if (m_V5Type[objnum] == 2) {
1251 objnum = (FX_DWORD)m_CrossRef[objnum];
1253 if (m_V5Type[objnum] == 1 || m_V5Type[objnum] == 255) {
1254 FX_FILESIZE offset = m_CrossRef[objnum];
1269 void CPDF_Parser::GetIndirectBinary(FX_DWORD objnum, FX_LPBYTE& pBuffer, FX_DWORD& size)
1273 if (objnum >= (FX_DWORD)m_CrossRef.GetSize()) {
1276 if (m_V5Type[objnum
1277 CPDF_StreamAcc* pObjStream = GetObjectStream((FX_DWORD)m_CrossRef[objnum]);
1291 if (thisnum == objnum) {
1307 if (m_V5Type[objnum] == 1) {
1308 FX_FILESIZE pos = m_CrossRef[objnum];
1321 if (parser_objnum && parser_objnum != objnum) {
1372 CPDF_Object* CPDF_Parser::ParseIndirectObjectAt(CPDF_IndirectObjects* pObjList, FX_FILESIZE pos, FX_DWORD objnum,
1386 if (objnum && parser_objnum != objnum) {
1400 CPDF_Object* pObj = m_Syntax.GetObject(pObjList, objnum, parser_gennum, pContext);
1408 if (!objnum) {
1415 CPDF_Object* CPDF_Parser::ParseIndirectObjectAtByStrict(CPDF_IndirectObjects* pObjList, FX_FILESIZE pos, FX_DWORD objnum,
1427 if (objnum && parser_objnum != objnum) {
1441 CPDF_Object* pObj = m_Syntax.GetObjectByStrict(pObjList, objnum, gennum, pContext);
1506 FX_DWORD objnum = FXSYS_atoi(word);
1516 m_pLinearized = m_Syntax.GetObject(NULL, objnum, gennum, 0);
1664 FX_LPVOID objnum;
1666 m_ObjectStreamMap.GetNextAssoc(pos, objnum, (void*&)pStream);
2056 CPDF_Object* CPDF_SyntaxParser::GetObject(CPDF_IndirectObjects* pObjList, FX_DWORD objnum, FX_DWORD gennum, PARSE_CONTEXT* pContext, FX_BOOL bDecrypt)
2079 FX_DWORD objnum = FXSYS_atoi(word);
2083 pRet = CPDF_Reference::Create(pObjList, objnum);
2122 m_pCryptoHandler->Decrypt(objnum, gennum, str);
2133 m_pCryptoHandler->Decrypt(objnum, gennum, str);
2144 CPDF_Object* pObj = GetObject(pObjList, objnum, gennum);
2192 CPDF_Object* pObj = GetObject(pObjList, objnum, gennum);
2207 CPDF_Object* pObj = GetObject(pObjList, objnum, gennum, NULL, FALSE);
2221 CPDF_Stream* pStream = ReadStream(pDict, pContext, objnum, gennum);
2242 CPDF_Object* CPDF_SyntaxParser::GetObjectByStrict(CPDF_IndirectObjects* pObjList, FX_DWORD objnum, FX_DWORD gennum, struct PARSE_CONTEXT* pContext)
2264 FX_DWORD objnum = FXSYS_atoi(word);
2268 return CPDF_Reference::Create(pObjList, objnum);
2302 m_pCryptoHandler->Decrypt(objnum, gennum, str);
2312 m_pCryptoHandler->Decrypt(objnum, gennum, str);
2322 CPDF_Object* pObj = GetObject(pObjList, objnum, gennum);
2370 CPDF_Object* pObj = GetObject(pObjList, objnum, gennum);
2400 CPDF_Stream* pStream = ReadStream(pDict, pContext, objnum, gennum);
2423 FX_DWORD objnum, FX_DWORD gennum)
2429 ((CPDF_Reference*)pLenObj)->GetRefObjNum() != objnum))) {
2439 CPDF_CryptoHandler* pCryptoHandler = objnum == (FX_DWORD)m_MetadataObjnum ? NULL : m_pCryptoHandler;
2484 FX_LPVOID context = pCryptoHandler->DecryptStart(objnum, gennum);
2747 FX_DWORD GetObjectSize(FX_DWORD objnum, FX_FILESIZE& offset);
2773 CPDF_Object * ParseIndirectObjectAt(FX_FILESIZE pos, FX_DWORD objnum);
2774 CPDF_Object * GetObject(FX_DWORD objnum, IFX_DownloadHints* pHints, FX_BOOL *pExistInFile);
3002 FX_DWORD CPDF_DataAvail::GetObjectSize(FX_DWORD objnum, FX_FILESIZE& offset)
3008 if (objnum >= (FX_DWORD)pParser->m_CrossRef.GetSize()) {
3011 if (pParser->m_V5Type[objnum] == 2) {
3012 objnum = (FX_DWORD)pParser->m_CrossRef[objnum];
3014 if (pParser->m_V5Type[objnum] == 1 || pParser->m_V5Type[objnum] == 255) {
3015 offset = pParser->m_CrossRef[objnum];
3282 CPDF_Object* CPDF_DataAvail::GetObject(FX_DWORD objnum, IFX_DownloadHints* pHints, FX_BOOL *pExistInFile)
3294 original_size = (FX_DWORD)m_parser.GetObjectSize(objnum);
3295 offset = m_parser.GetObjectOffset(objnum);
3298 original_size = GetObjectSize(objnum, offset);
3332 pRet = pParser->ParseIndirectObject(NULL, objnum, NULL);
3662 CPDF_Object * CPDF_DataAvail::ParseIndirectObjectAt(FX_FILESIZE pos, FX_DWORD objnum)
3672 if (objnum && parser_objnum != objnum) {
3684 CPDF_Object* pObj = m_syntaxParser.GetObject(NULL, objnum, gennum, 0);
3724 FX_DWORD objnum = FXSYS_atoi(wordObjNum);
3729 m_pLinearized = ParseIndirectObjectAt(m_syntaxParser.m_HeaderOffset + 9, objnum);
3797 CFX_ByteString objnum = m_parser.m_Syntax.GetNextWord(bNumber);
3801 FX_DWORD objNum = FXSYS_atoi(objnum);
3802 CPDF_Object *pObj = m_parser.ParseIndirectObjectAt(NULL, 0, objNum, NULL);