mirror of
https://github.com/TheOfficialFloW/bd-jb
synced 2024-11-22 00:42:21 -05:00
Rename IntBase to AbstractInt.
This commit is contained in:
parent
b995e5e3d5
commit
44ae595424
2
Makefile
2
Makefile
@ -10,9 +10,9 @@ CLASSES = \
|
|||||||
$(SRC)/com/bdjb/Exploit.java \
|
$(SRC)/com/bdjb/Exploit.java \
|
||||||
$(SRC)/com/bdjb/JIT.java \
|
$(SRC)/com/bdjb/JIT.java \
|
||||||
$(SRC)/com/bdjb/Screen.java \
|
$(SRC)/com/bdjb/Screen.java \
|
||||||
|
$(SRC)/com/bdjb/api/AbstractInt.java \
|
||||||
$(SRC)/com/bdjb/api/API.java \
|
$(SRC)/com/bdjb/api/API.java \
|
||||||
$(SRC)/com/bdjb/api/Buffer.java \
|
$(SRC)/com/bdjb/api/Buffer.java \
|
||||||
$(SRC)/com/bdjb/api/IntBase.java \
|
|
||||||
$(SRC)/com/bdjb/api/Int8.java \
|
$(SRC)/com/bdjb/api/Int8.java \
|
||||||
$(SRC)/com/bdjb/api/Int16.java \
|
$(SRC)/com/bdjb/api/Int16.java \
|
||||||
$(SRC)/com/bdjb/api/Int32.java \
|
$(SRC)/com/bdjb/api/Int32.java \
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
package com.bdjb.api;
|
package com.bdjb.api;
|
||||||
|
|
||||||
abstract class IntBase {
|
abstract class AbstractInt {
|
||||||
protected static final API api;
|
protected static final API api;
|
||||||
|
|
||||||
static {
|
static {
|
||||||
@ -24,13 +24,13 @@ abstract class IntBase {
|
|||||||
|
|
||||||
protected final int[] dimensions;
|
protected final int[] dimensions;
|
||||||
|
|
||||||
protected IntBase(int[] dimensions) {
|
protected AbstractInt(int[] dimensions) {
|
||||||
this.dimensions = dimensions;
|
this.dimensions = dimensions;
|
||||||
this.size = size(dimensions);
|
this.size = size(dimensions);
|
||||||
this.address = api.malloc(size);
|
this.address = api.malloc(size);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected IntBase() {
|
protected AbstractInt() {
|
||||||
this(new int[] {1});
|
this(new int[] {1});
|
||||||
}
|
}
|
||||||
|
|
@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
package com.bdjb.api;
|
package com.bdjb.api;
|
||||||
|
|
||||||
public final class Int16 extends IntBase {
|
public final class Int16 extends AbstractInt {
|
||||||
public static final int SIZE = 2;
|
public static final int SIZE = 2;
|
||||||
|
|
||||||
public Int16(int[] dimensions) {
|
public Int16(int[] dimensions) {
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
package com.bdjb.api;
|
package com.bdjb.api;
|
||||||
|
|
||||||
public final class Int32 extends IntBase {
|
public final class Int32 extends AbstractInt {
|
||||||
public static final int SIZE = 4;
|
public static final int SIZE = 4;
|
||||||
|
|
||||||
public Int32(int[] dimensions) {
|
public Int32(int[] dimensions) {
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
package com.bdjb.api;
|
package com.bdjb.api;
|
||||||
|
|
||||||
public final class Int64 extends IntBase {
|
public final class Int64 extends AbstractInt {
|
||||||
public static final int SIZE = 8;
|
public static final int SIZE = 8;
|
||||||
|
|
||||||
public Int64(int[] dimensions) {
|
public Int64(int[] dimensions) {
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
package com.bdjb.api;
|
package com.bdjb.api;
|
||||||
|
|
||||||
public final class Int8 extends IntBase {
|
public final class Int8 extends AbstractInt {
|
||||||
public static final int SIZE = 1;
|
public static final int SIZE = 1;
|
||||||
|
|
||||||
public Int8(int[] dimensions) {
|
public Int8(int[] dimensions) {
|
||||||
|
Loading…
Reference in New Issue
Block a user