Lines Matching refs:ptr

92 static inline u4 fileOffset(const CheckState* state, const void* ptr) {
93 return ((const u1*) ptr) - state->fileStart;
547 static void* swapStringIdItem(const CheckState* state, void* ptr) {
548 DexStringId* item = (DexStringId*) ptr;
557 static void* crossVerifyStringIdItem(const CheckState* state, void* ptr) {
558 const DexStringId* item = (const DexStringId*) ptr;
580 static void* swapTypeIdItem(const CheckState* state, void* ptr) {
581 DexTypeId* item = (DexTypeId*) ptr;
590 static void* crossVerifyTypeIdItem(const CheckState* state, void* ptr) {
591 const DexTypeId* item = (const DexTypeId*) ptr;
614 static void* swapProtoIdItem(const CheckState* state, void* ptr) {
615 DexProtoId* item = (DexProtoId*) ptr;
671 static void* crossVerifyProtoIdItem(const CheckState* state, void* ptr) {
672 const DexProtoId* item = (const DexProtoId*) ptr;
764 static void* swapFieldIdItem(const CheckState* state, void* ptr) {
765 DexFieldId* item = (DexFieldId*) ptr;
776 static void* crossVerifyFieldIdItem(const CheckState* state, void* ptr) {
777 const DexFieldId* item = (const DexFieldId*) ptr;
836 static void* swapMethodIdItem(const CheckState* state, void* ptr) {
837 DexMethodId* item = (DexMethodId*) ptr;
848 static void* crossVerifyMethodIdItem(const CheckState* state, void* ptr) {
849 const DexMethodId* item = (const DexMethodId*) ptr;
902 static void* swapClassDefItem(const CheckState* state, void* ptr) {
903 DexClassDef* item = (DexClassDef*) ptr;
974 static void* crossVerifyClassDefItem(const CheckState* state, void* ptr) {
975 const DexClassDef* item = (const DexClassDef*) ptr;
1155 static void* swapAnnotationsDirectoryItem(const CheckState* state, void* ptr) {
1156 DexAnnotationsDirectoryItem* item = (DexAnnotationsDirectoryItem*) ptr;
1285 void* ptr) {
1286 const DexAnnotationsDirectoryItem* item = (const DexAnnotationsDirectoryItem*) ptr;
1324 static void* swapTypeList(const CheckState* state, void* ptr)
1326 DexTypeList* pTypeList = (DexTypeList*) ptr;
1346 static void* swapAnnotationSetRefList(const CheckState* state, void* ptr) {
1347 DexAnnotationSetRefList* list = (DexAnnotationSetRefList*) ptr;
1367 void* ptr) {
1368 const DexAnnotationSetRefList* list = (const DexAnnotationSetRefList*) ptr;
1385 static void* swapAnnotationSetItem(const CheckState* state, void* ptr) {
1386 DexAnnotationSetItem* set = (DexAnnotationSetItem*) ptr;
1412 static void* crossVerifyAnnotationSetItem(const CheckState* state, void* ptr) {
1413 const DexAnnotationSetItem* set = (const DexAnnotationSetItem*) ptr;
1560 static void* intraVerifyClassDataItem(const CheckState* state, void* ptr) {
1561 const u1* data = (const u1*) ptr;
1613 static void* crossVerifyClassDataItem(const CheckState* state, void* ptr) {
1614 const u1* data = (const u1*) ptr;
1669 const u1* ptr = handlersBase + offset;
1670 int size = readAndVerifySignedLeb128(&ptr, fileEnd, &okay);
1694 readAndVerifyUnsignedLeb128(&ptr, fileEnd, &okay);
1703 u4 addr = readAndVerifyUnsignedLeb128(&ptr, fileEnd, &okay);
1717 u4 addr = readAndVerifyUnsignedLeb128(&ptr, fileEnd, &okay);
1730 offset = ptr - handlersBase;
1813 static void* swapCodeItem(const CheckState* state, void* ptr) {
1814 DexCode* item = (DexCode*) ptr;
1855 ptr = insns;
1865 ptr = swapTriesAndCatches(state, item);
1868 return ptr;
1872 static void* intraVerifyStringDataItem(const CheckState* state, void* ptr) {
1874 const u1* data = (const u1*) ptr;
1973 static void* intraVerifyDebugInfoItem(const CheckState* state, void* ptr) {
1975 const u1* data = (const u1*) ptr;
2351 static void* intraVerifyEncodedArrayItem(const CheckState* state, void* ptr) {
2352 return (void*) verifyEncodedArray(state, (const u1*) ptr, false);
2356 static void* intraVerifyAnnotationItem(const CheckState* state, void* ptr) {
2357 const u1* data = (const u1*) ptr;
2377 static void* crossVerifyAnnotationItem(const CheckState* state, void* ptr) {
2378 const u1* data = (const u1*) ptr;
2392 typedef void* ItemVisitorFunction(const CheckState* state, void* ptr);
2409 u1* ptr = (u1*) filePointer(state, newOffset);
2412 ptr = (u1*) filePointer(state, offset);
2416 if (*ptr != '\0') {
2417 ALOGE("Non-zero padding 0x%02x @ %x", *ptr, offset);
2420 ptr++;
2426 u1* newPtr = (u1*) func(state, ptr);
2443 state->previousItem = ptr;
2539 const u1* ptr = (const u1*) filePointer(state, lastOffset);
2541 if (*ptr != '\0') {
2543 *ptr, lastOffset);
2547 ptr++;