Lines Matching refs:data
123 static void dexComputeSHA1Digest(const unsigned char* data, size_t length,
128 SHA1Update(&context, data, length);
266 * Set up the basic raw data pointers of a DexFile. This function isn't
269 void dexFileSetupBasicPointers(DexFile* pDexFile, const u1* data) {
270 DexHeader *pHeader = (DexHeader*) data;
272 pDexFile->baseAddr = data;
274 pDexFile->pStringIds = (const DexStringId*) (data + pHeader->stringIdsOff);
275 pDexFile->pTypeIds = (const DexTypeId*) (data + pHeader->typeIdsOff);
276 pDexFile->pFieldIds = (const DexFieldId*) (data + pHeader->fieldIdsOff);
277 pDexFile->pMethodIds = (const DexMethodId*) (data + pHeader->methodIdsOff);
278 pDexFile->pProtoIds = (const DexProtoId*) (data + pHeader->protoIdsOff);
279 pDexFile->pClassDefs = (const DexClassDef*) (data + pHeader->classDefsOff);
280 pDexFile->pLinkData = (const DexLink*) (data + pHeader->linkOff);
289 DexFile* dexFileParse(const u1* data, size_t length, int flags)
309 if (memcmp(data, DEX_OPT_MAGIC, 4) == 0) {
310 magic = data;
317 pDexFile->pOptHeader = (const DexOptHeader*) data;
322 if (!dexParseOptData(data, length, pDexFile))
325 /* ignore the opt header and appended data from here on out */
326 data += pDexFile->pOptHeader->dexOffset;
336 dexFileSetupBasicPointers(pDexFile, data);
384 dexComputeSHA1Digest(data + nonSum, length - nonSum, sha1Digest);
424 * Free up the DexFile and any associated data structures.
496 * The catch handler data is the last entry. It has a variable number