Why?

Results 20 comments of Why?

选取大图 2250x4000 9MB 时报错: Mark has been invalidated, pos: xxx markLimit: xxx ``` com.forjrking.lubankt.io.BufferedInputStreamWrap$InvalidMarkException: Mark has been invalidated, pos: 1701080 markLimit: 5242880 at com.forjrking.lubankt.io.BufferedInputStreamWrap.reset(BufferedInputStreamWrap.java:318) at com.forjrking.lubankt.Checker$getOrientation$reader$1.getOrientation(Checker.kt:137) at com.forjrking.lubankt.Checker.getOrientationInternal(Checker.kt:147) at com.forjrking.lubankt.Checker.getOrientation(Checker.kt:141)...

> > 选取大图 2250x4000 9MB 时报错: Mark has been invalidated, pos: xxx markLimit: xxx > > ``` > > com.forjrking.lubankt.io.BufferedInputStreamWrap$InvalidMarkException: Mark has been invalidated, pos: 1701080 markLimit: 5242880 > >...

Calculate the transformed RectF using the following method for greater accuracy. ```java /** * 原始相对图片的坐标框根据图片的变换矩阵映射变化后对应的坐标框 * * @param currentImageMatrix 当前图片的矩阵 * @param cropViewRect 原生的坐标框 * @return 变化映射后对应的坐标框 */ public static...

You can copy this java code into chatGpt, it can help you to convert it

> hello bro me using in code > > ```java > import android.app.ProgressDialog; > import android.content.pm.PackageManager; > import android.Manifest; > import android.os.Environment; > import android.os.Handler; > import android.widget.Button; > import...

> > > > I didn't understand, can you help me more or send me a sample code? > > @xiaoyvyv There is also a simple method, you can set...

最近Fork仓库大致看了一下,发现了耗时的原因 因为你扫描修改插桩的类是在你的 router 模块下,这个是作为依赖到项目的,所以你 toTransform 只能设置 Scope 为 ALL,这样将会导致很严重的耗时。因为公司项目一般很大,依赖将非常多,全量扫描的生成的 classes.jar 能达到 100M+,这里有很大的优化空间。 ### 优化方案: 1. 将 toTransform 的 Scope 设置为 PROJECT 2. 由于 Scope 设置为 PROJECT 仅处理项目内的 class,将无法修改依赖的相关 jar 的类,所以需要调整一下。将...

可以看下我 fork 后优化的 ### plugin 模块 [RouterPlugin.kt](https://github.com/xiaoyvyv/LRouter/blob/main/plugin/src/main/kotlin/com/aleyn/router/plug/RouterPlugin.kt) [LRouterClassTask.kt](https://github.com/xiaoyvyv/LRouter/blob/main/plugin/src/main/kotlin/com/aleyn/router/plug/task/LRouterClassTask.kt) [RouterStubClassTask.kt](https://github.com/xiaoyvyv/LRouter/blob/main/plugin/src/main/kotlin/com/aleyn/router/plug/task/RouterStubClassTask.kt) ### router 模块 [LRouterGenerate.kt](https://github.com/xiaoyvyv/LRouter/blob/main/router/src/main/java/com/aleyn/router/inject/LRouterGenerate.kt) [IRouterGenerate.kt](https://github.com/xiaoyvyv/LRouter/blob/main/router/src/main/java/com/aleyn/router/inject/IRouterGenerate.kt) [AutowiredInstructAdapter.kt](https://github.com/xiaoyvyv/LRouter/blob/main/plugin/src/main/kotlin/com/aleyn/router/plug/visitor/AutowiredInstructAdapter.kt) `load` 和 `store` 的 `varIndex` 调整了一下,因为修改的不是静态方法了。