OSDN Git Service

TypeRef, not ClassRef.
[android-x86/dalvik.git] / libdex / DexClass.c
index 1268130..8a59e09 100644 (file)
@@ -52,11 +52,11 @@ bool dexReadAndVerifyClassDataHeader(const u1** pData, const u1* pLimit,
 /* Read and verify an encoded_field. This updates the
  * given data pointer to point past the end of the read data and
  * returns an "okay" flag (that is, false == failure).
- * 
+ *
  * The lastIndex value should be set to 0 before the first field in
  * a list is read. It is updated as fields are read and used in the
  * decode process.
- *  
+ *
  * The verification done by this function is of the raw data format
  * only; it does not verify that access flags or indices
  * are valid. */
@@ -73,7 +73,7 @@ bool dexReadAndVerifyClassDataField(const u1** pData, const u1* pLimit,
 /* Read and verify an encoded_method. This updates the
  * given data pointer to point past the end of the read data and
  * returns an "okay" flag (that is, false == failure).
- * 
+ *
  * The lastIndex value should be set to 0 before the first method in
  * a list is read. It is updated as fields are read and used in the
  * decode process.
@@ -97,7 +97,7 @@ bool dexReadAndVerifyClassDataMethod(const u1** pData, const u1* pLimit,
  * must subsequently be free()d. This function returns NULL if there
  * was trouble parsing the data. If this function is passed NULL, it
  * returns an initialized empty DexClassData structure.
- * 
+ *
  * The verification done by this function is of the raw data format
  * only; it does not verify that access flags, indices, or offsets
  * are valid. */
@@ -110,7 +110,7 @@ DexClassData* dexReadAndVerifyClassData(const u1** pData, const u1* pLimit) {
         memset(result, 0, sizeof(*result));
         return result;
     }
-    
+
     if (! dexReadAndVerifyClassDataHeader(pData, pLimit, &header)) {
         return NULL;
     }
@@ -138,21 +138,21 @@ DexClassData* dexReadAndVerifyClassData(const u1** pData, const u1* pLimit) {
     } else {
         result->staticFields = NULL;
     }
-    
+
     if (header.instanceFieldsSize != 0) {
         result->instanceFields = (DexField*) ptr;
         ptr += header.instanceFieldsSize * sizeof(DexField);
     } else {
         result->instanceFields = NULL;
     }
-    
+
     if (header.directMethodsSize != 0) {
         result->directMethods = (DexMethod*) ptr;
         ptr += header.directMethodsSize * sizeof(DexMethod);
     } else {
         result->directMethods = NULL;
     }
-    
+
     if (header.virtualMethodsSize != 0) {
         result->virtualMethods = (DexMethod*) ptr;
     } else {
@@ -176,7 +176,7 @@ DexClassData* dexReadAndVerifyClassData(const u1** pData, const u1* pLimit) {
         okay = dexReadAndVerifyClassDataMethod(pData, pLimit,
                 &result->directMethods[i], &lastIndex);
     }
-    
+
     lastIndex = 0;
     for (i = 0; okay && (i < header.virtualMethodsSize); i++) {
         okay = dexReadAndVerifyClassDataMethod(pData, pLimit,