-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adapting to changes in arklib [work in progress]
- Loading branch information
Showing
6 changed files
with
18 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 4 additions & 6 deletions
10
app/src/main/java/space/taran/arknavigator/mvp/model/repo/index/ResourceId.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,13 @@ | ||
package space.taran.arknavigator.mvp.model.repo.index | ||
|
||
import java.nio.file.Path | ||
|
||
typealias ResourceId = Long | ||
|
||
// Reading from SD card is up to 3 times slower! | ||
// Calculating CRC-32 hash of a file takes about the | ||
// same time as reading the file from internal storage. | ||
|
||
private external fun computeIdNative(size: Long, file: String): Long | ||
// private external fun computeIdNative(size: Long, file: String): Long | ||
|
||
fun computeId(size: Long, file: Path): ResourceId { | ||
return computeIdNative(size, file.toString()) | ||
} | ||
// fun computeId(size: Long, file: Path): ResourceId { | ||
// return computeIdNative(size, file.toString()) | ||
// } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters