Java Code Examples for org.jf.dexlib2.dexbacked.raw.StringIdItem

The following examples show how to use org.jf.dexlib2.dexbacked.raw.StringIdItem. These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: ZjDroid   Source File: DexBackedDexFile.java    License: Apache License 2.0 5 votes vote down vote up
public int getStringIdItemOffset(int stringIndex) {
	if(this.type == DexFileDataType.MEMORYTYPE){
		return stringStartOffset + stringIndex*StringIdItem.ITEM_SIZE;
	}
    if (stringIndex < 0 || stringIndex >= stringCount) {
        throw new InvalidItemIndex(stringIndex, "String index out of bounds: %d", stringIndex);
    }
    return stringStartOffset + stringIndex*StringIdItem.ITEM_SIZE;
}
 
Example 2
Source Project: zjdroid   Source File: DexBackedDexFile.java    License: Apache License 2.0 5 votes vote down vote up
public int getStringIdItemOffset(int stringIndex) {
	if(this.type == DexFileDataType.MEMORYTYPE){
		return stringStartOffset + stringIndex*StringIdItem.ITEM_SIZE;
	}
    if (stringIndex < 0 || stringIndex >= stringCount) {
        throw new InvalidItemIndex(stringIndex, "String index out of bounds: %d", stringIndex);
    }
    return stringStartOffset + stringIndex*StringIdItem.ITEM_SIZE;
}
 
Example 3
Source Project: HeyGirl   Source File: DexBackedDexFile.java    License: Apache License 2.0 5 votes vote down vote up
public int getStringIdItemOffset(int stringIndex) {
	if(this.type == DexFileDataType.MEMORYTYPE){
		return stringStartOffset + stringIndex*StringIdItem.ITEM_SIZE;
	}
    if (stringIndex < 0 || stringIndex >= stringCount) {
        throw new InvalidItemIndex(stringIndex, "String index out of bounds: %d", stringIndex);
    }
    return stringStartOffset + stringIndex*StringIdItem.ITEM_SIZE;
}
 
Example 4
Source Project: ZjDroid   Source File: DexBackedDexFile.java    License: Apache License 2.0 5 votes vote down vote up
public int getStringIdItemOffset(int stringIndex) {
	if(this.type == DexFileDataType.MEMORYTYPE){
		return stringStartOffset + stringIndex*StringIdItem.ITEM_SIZE;
	}
    if (stringIndex < 0 || stringIndex >= stringCount) {
        throw new InvalidItemIndex(stringIndex, "String index out of bounds: %d", stringIndex);
    }
    return stringStartOffset + stringIndex*StringIdItem.ITEM_SIZE;
}