java.lang.Object
io.github.turtleisaac.nds4j.framework.Buffer

public class Buffer extends Object
  • Constructor Details

    • Buffer

      public Buffer(String file)
    • Buffer

      public Buffer(Path file)
  • Method Details

    • readFile

      public static byte[] readFile(String file)
    • readFile

      public static byte[] readFile(Path file)
    • 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

      public String readString(int size)
    • 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

      public void close() throws IOException
      Throws:
      IOException
    • getFile

      public String 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()