package QuickVerifyCrap; import java.io.FileNotFoundException; import java.io.IOException; import java.io.RandomAccessFile; public class PrimeMagic { public static void main(String[] args) throws IOException { double downscaler = 1.0/1.3; double[] multconst = new double[16]; double mult = 1.0; for(int i=15;i>0;i--) { multconst[i]=mult; mult=mult*downscaler; } byte[] framelengths = new byte[]{0,0,0,0, 0,0,0,2, 4,8,16,32, 0,0,0,0}; String basepath = "D:/LOA/000030"; RandomAccessFile flash = new RandomAccessFile(basepath+"/flash.bin","r"); int count = flash.readInt(); count = Integer.reverseBytes(count); System.out.println(count); int dud = flash.readInt(); //2x unknown dud = flash.readInt(); dud = flash.readInt(); int[] fileoffsets = new int[count]; int[] filelengths = new int[count]; for(int i=0;i>4)&0x0F); byte framelen = (byte)(frameprefix&0x0f); multipliers.write(multiplier); int mappedFramelen = framelengths[framelen]; boolean tail=false; if(mappedFramelen==0) { tail=true; mappedFramelen= (int) (hardlimit- flash.getFilePointer()); //edgecase tail; } byte modifier = flash.readByte(); modifiers.write(modifier); byte[] framecontent = new byte[mappedFramelen]; flash.read(framecontent); for(int j=0;j