size[0] = Integer.parseInt(res[1]);
size[1] = Integer.parseInt(res[3]);
if (res[0].charAt(0) == '+') {
size[0] = -size[0];
throw new UnimplementedException();
}
if (res[2].charAt(0) == '-') {
size[1] = -size[1];
throw new UnimplementedException();
}
swap = (res[0].charAt(1) == 'x');
if (swap) {
throw new UnimplementedException();
}
byte[] data = new byte[size[0] * size[1] * 4];
ByteBuffer buffer = ByteBuffer.wrap(data);
byte[] next = new byte[4];