Home | History | Annotate | Download | only in libdex

Lines Matching refs:offset

71  * Add a new element to the map. The offset must be greater than the
74 void dexDataMapAdd(DexDataMap* map, u4 offset, u2 type) {
79 (map->offsets[map->count - 1] >= offset)) {
80 ALOGE("Out-of-order data map offset: %#x then %#x",
81 map->offsets[map->count - 1], offset);
85 map->offsets[map->count] = offset;
91 * Get the type associated with the given offset. This returns -1 if
92 * there is no entry for the given offset.
94 int dexDataMapGet(DexDataMap* map, u4 offset) {
106 if (offset < guess) {
108 } else if (offset > guess) {
121 * Verify that there is an entry in the map, mapping the given offset to
125 bool dexDataMapVerify(DexDataMap* map, u4 offset, u2 type) {
126 int found = dexDataMapGet(map, offset);
134 offset, type);
137 offset, type, found);