Lines Matching defs:result
96 * function allocates a single chunk of memory for the result, which
109 DexClassData* result = (DexClassData*) malloc(sizeof(DexClassData));
110 memset(result, 0, sizeof(*result));
111 return result;
124 DexClassData* result = (DexClassData*) malloc(resultSize);
125 u1* ptr = ((u1*) result) + sizeof(DexClassData);
129 if (result == NULL) {
133 result->header = header;
136 result->staticFields = (DexField*) ptr;
139 result->staticFields = NULL;
143 result->instanceFields = (DexField*) ptr;
146 result->instanceFields = NULL;
150 result->directMethods = (DexMethod*) ptr;
153 result->directMethods = NULL;
157 result->virtualMethods = (DexMethod*) ptr;
159 result->virtualMethods = NULL;
165 &result->staticFields[i], &lastIndex);
171 &result->instanceFields[i], &lastIndex);
177 &result->directMethods[i], &lastIndex);
183 &result->virtualMethods[i], &lastIndex);
187 free(result);
191 return result;