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
public class CleanerUtil { | |
private static MethodHandle methodHandle; | |
private static MethodHandle cleanerMethodHandle; | |
private static MethodHandle clean; | |
static { | |
MethodHandles.Lookup lookup = MethodHandles.publicLookup(); | |
if (isJava9OrLater()) { | |
// Java 9 branch |
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
public class FindByte { | |
static Map<Byte, Long> map = new HashMap<>(); | |
public static List<Integer> findAllPer8(byte find, byte[] target){ | |
List<Integer> list = new ArrayList<>(); | |
for(int i = 0; i < target.length; i = i + 8){ | |
byte[] array; | |
if(target.length - i < 8){ | |
array = Arrays.copyOfRange(target, i, target.length); |