mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-05-28 12:57:10 +00:00
allow to create swf from code only / export SWF to "Java code", which generates the SWF
This commit is contained in:
@@ -12,7 +12,8 @@
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library.
|
||||
* License along with this library.
|
||||
*/
|
||||
package com.jpexs.helpers;
|
||||
|
||||
/**
|
||||
@@ -39,6 +40,16 @@ public class ByteArrayRange {
|
||||
this.length = length;
|
||||
}
|
||||
|
||||
public ByteArrayRange(String hexString) {
|
||||
byte[] array = new byte[hexString.length() / 2];
|
||||
for (int i = 0; i < hexString.length() / 2; i++) {
|
||||
array[i] = (byte) Integer.parseInt(hexString.substring(i * 2, i * 2 + 2), 16);
|
||||
}
|
||||
this.array = array;
|
||||
this.pos = 0;
|
||||
this.length = array.length;
|
||||
}
|
||||
|
||||
public byte[] getArray() {
|
||||
return array;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user