mirror of
https://github.com/sirjonasxx/G-Earth.git
synced 2024-11-27 02:40:51 +01:00
Base64 style points
This commit is contained in:
parent
bb7dd9db6e
commit
3a10d6d185
@ -20,14 +20,10 @@ public class Base64Encoding {
|
||||
public static int decode(byte[] data) {
|
||||
int res = 0;
|
||||
|
||||
for (int k = data.length - 1, i = 0; k >= 0; k--, i++)
|
||||
{
|
||||
int x = data[k] - 0x40;
|
||||
if (i > 0){
|
||||
res += x << (i * 6);
|
||||
} else {
|
||||
res += x;
|
||||
}
|
||||
for (byte x : data) {
|
||||
final int byteVal = x - 0x40;
|
||||
|
||||
res = (res << 6) | byteVal;
|
||||
}
|
||||
|
||||
return res;
|
||||
|
2
pom.xml
2
pom.xml
@ -11,7 +11,7 @@
|
||||
|
||||
<properties>
|
||||
<!-- Version of the application. -->
|
||||
<revision>1.5.4-beta-5</revision>
|
||||
<revision>1.5.4-beta-6</revision>
|
||||
<changelist>-SNAPSHOT</changelist>
|
||||
<!-- Version for https://github.com/sirjonasxx/G-ExtensionStore to keep compatibility with beta versions. -->
|
||||
<storeVersion>1.5.3</storeVersion>
|
||||
|
Loading…
Reference in New Issue
Block a user