Package dev.forbit.server.utilities
Class GMLInputBuffer
java.lang.Object
dev.forbit.server.utilities.GMLInputBuffer
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
GMLInputBuffer
-
-
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
Attempts to read string from the bufferThis will loop through the buffer byte-by-byte until a character
0x00
is found. If the program cannot find a0x00
character, then the entire buffer will be read through and this function will returnOptional.empty()
- Returns:
- the string attempted to read, or empty
-