Class Buffer
java.lang.Object
io.github.turtleisaac.nds4j.framework.Buffer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
boolean
getFile()
int
int
int
readByte()
byte[]
readBytes
(int size) int[]
readBytesI
(int size) static byte[]
static byte[]
int
readInt()
long
readLong()
byte[]
int[]
readSelectiveByte
(int max, int alt) int[]
readSelectiveInt
(int max, int alt) short[]
readSelectiveShort
(int max, short alt) short
short[]
readShorts
(int size) readString
(int size) byte[]
readTo
(int offset) byte[]
readTo
(long offset) int
long
short[]
readUnsignedShorts
(int size) short
void
skipBytes
(int bytes) void
skipTo
(int offset) void
skipTo
(long offset)
-
Constructor Details
-
Buffer
-
Buffer
-
-
Method Details
-
readFile
-
readFile
-
readInt
public int readInt() -
readSelectiveInt
public int[] readSelectiveInt(int max, int alt) -
readSelectiveShort
public short[] readSelectiveShort(int max, short alt) -
readSelectiveByte
public int[] readSelectiveByte(int max, int alt) -
readUInt32
public long readUInt32() -
readUInt16
public int readUInt16() -
readLong
public long readLong() -
readShort
public short readShort() -
readShorts
public short[] readShorts(int size) -
readUnsignedShorts
public short[] readUnsignedShorts(int size) -
readString
-
readBytes
public byte[] readBytes(int size) -
readBytesI
public int[] readBytesI(int size) -
readByte
public int readByte() -
readUShort8
public short readUShort8() -
getPosition
public int getPosition() -
close
- Throws:
IOException
-
getFile
-
endOfFile
public boolean endOfFile() -
skipBytes
public void skipBytes(int bytes) -
skipTo
public void skipTo(int offset) -
skipTo
public void skipTo(long offset) -
readTo
public byte[] readTo(int offset) -
readTo
public byte[] readTo(long offset) -
readRemainder
public byte[] readRemainder() -
getLength
public int getLength()
-