public static byte[] readFirstNBytes(Path path, int n) throws IOException {
		byte[] data = new byte[n];
		try (InputStream fis = Files.newInputStream(path)) {
			fis.read(data);
		}
		return data;
	}
@param path
		Path to some file.
@param n
		Number of bytes to read.

@return First n bytes of the file.

@throws IOException
		When the file cannot be read from.
recaf-core/src/main/java/software/coley/recaf/util/IOUtil.java