Class Buffer
java.lang.Object
io.github.turtleisaac.nds4j.framework.Buffer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()booleangetFile()intintintreadByte()byte[]readBytes(int size) int[]readBytesI(int size) static byte[]static byte[]intreadInt()longreadLong()byte[]int[]readSelectiveByte(int max, int alt) int[]readSelectiveInt(int max, int alt) short[]readSelectiveShort(int max, short alt) shortshort[]readShorts(int size) readString(int size) byte[]readTo(int offset) byte[]readTo(long offset) intlongshort[]readUnsignedShorts(int size) shortvoidskipBytes(int bytes) voidskipTo(int offset) voidskipTo(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()
-