Class GMLInputBuffer

java.lang.Object
dev.forbit.server.utilities.GMLInputBuffer

public class GMLInputBuffer extends Object
  • Constructor Details

    • GMLInputBuffer

      public GMLInputBuffer(ByteBuffer buffer)
  • Method Details

    • readS8

      public byte readS8()
    • readS16

      public short readS16()
    • readS32

      public int readS32()
    • readF32

      public float readF32()
    • readF64

      public double readF64()
    • readBool

      public boolean readBool()
    • readString

      public Optional<String> readString()
      Attempts to read string from the buffer

      This will loop through the buffer byte-by-byte until a character 0x00 is found. If the program cannot find a 0x00 character, then the entire buffer will be read through and this function will return Optional.empty()

      Returns:
      the string attempted to read, or empty