这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@Huaxin-gg
Copy link
Contributor

To let DexBackedDexFile be able to read in DEX file using MappedByteBuffer.

this(opcodes, buf, 0, true);
}

public DexBackedDexFile(@Nullable Opcodes opcodes, @Nonnull MappedDexBuffer buf) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this constructor is needed now?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. Thanks

@@ -0,0 +1,104 @@
package org.jf.dexlib2.dexbacked;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As per my last comments, I don't think class needs to be submitted to the smali repo

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. Thanks

* @param offset The offset within the buffer to the beginning of the dex header
* @return True if the magic value is valid
*/
public static boolean verifyMagic(MappedByteBuffer buf, int offset) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think any of the changes in this file are needed any longer?

@JesusFreke
Copy link
Owner

Thanks, I squashed the commits, removed some remaining unneeded changes, and reworded the commit message a bit to reflect the recent changes. Committed as b7a1052

@JesusFreke JesusFreke closed this Jan 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants