Lines Matching refs:data
122 static void dexComputeSHA1Digest(const unsigned char* data, size_t length, in dexComputeSHA1Digest() argument
127 SHA1Update(&context, data, length); in dexComputeSHA1Digest()
266 void dexFileSetupBasicPointers(DexFile* pDexFile, const u1* data) { in dexFileSetupBasicPointers() argument
267 DexHeader *pHeader = (DexHeader*) data; in dexFileSetupBasicPointers()
269 pDexFile->baseAddr = data; in dexFileSetupBasicPointers()
271 pDexFile->pStringIds = (const DexStringId*) (data + pHeader->stringIdsOff); in dexFileSetupBasicPointers()
272 pDexFile->pTypeIds = (const DexTypeId*) (data + pHeader->typeIdsOff); in dexFileSetupBasicPointers()
273 pDexFile->pFieldIds = (const DexFieldId*) (data + pHeader->fieldIdsOff); in dexFileSetupBasicPointers()
274 pDexFile->pMethodIds = (const DexMethodId*) (data + pHeader->methodIdsOff); in dexFileSetupBasicPointers()
275 pDexFile->pProtoIds = (const DexProtoId*) (data + pHeader->protoIdsOff); in dexFileSetupBasicPointers()
276 pDexFile->pClassDefs = (const DexClassDef*) (data + pHeader->classDefsOff); in dexFileSetupBasicPointers()
277 pDexFile->pLinkData = (const DexLink*) (data + pHeader->linkOff); in dexFileSetupBasicPointers()
286 DexFile* dexFileParse(const u1* data, size_t length, int flags) in dexFileParse() argument
306 if (memcmp(data, DEX_OPT_MAGIC, 4) == 0) { in dexFileParse()
307 magic = data; in dexFileParse()
314 pDexFile->pOptHeader = (const DexOptHeader*) data; in dexFileParse()
319 if (!dexParseOptData(data, length, pDexFile)) in dexFileParse()
323 data += pDexFile->pOptHeader->dexOffset; in dexFileParse()
333 dexFileSetupBasicPointers(pDexFile, data); in dexFileParse()
381 dexComputeSHA1Digest(data + nonSum, length - nonSum, sha1Digest); in dexFileParse()