Mallet Engine
2
Entity-Component based game engine, written in Java.
|
Public Member Functions | |
int | readInt () |
byte | readByte () |
char | readChar () |
long | readLong () |
float | readFloat () |
double | readDouble () |
String | readString () |
boolean | readBoolean () |
int[] | readInts () |
byte[] | readBytes () |
char[] | readChars () |
long[] | readLongs () |
float[] | readFloats () |
double[] | readDoubles () |
String[] | readStrings () |
boolean[] | readBooleans () |
SerialiseOutput and SerialiseInput work in tandem.
If SerialiseOutput.writeBytes is called and X bytes is passed in, then the subsequent SerialiseInput will return the same X bytes.
SerialiseOutput.writeBytes( new byte[10] ) ; SerialiseOutput.writeBytes( new byte[5] ) ; SerialiseOutput.writeBytes( new byte[8] ) ;
SerialiseInput.readBytes() ; <--- Will return 10 SerialiseInput.readBytes() ; <--- Will return 5 SerialiseInput.readBytes() ; <--- Will return 8
All implementations should guarantee this. Note must be called in identical order.
Implemented in com.linxonline.mallet.io.serialisation.ByteInput.
Implemented in com.linxonline.mallet.io.serialisation.ByteInput.
Implemented in com.linxonline.mallet.io.serialisation.ByteInput.
Implemented in com.linxonline.mallet.io.serialisation.ByteInput.
Implemented in com.linxonline.mallet.io.serialisation.ByteInput.
Implemented in com.linxonline.mallet.io.serialisation.ByteInput.
Implemented in com.linxonline.mallet.io.serialisation.ByteInput.
Implemented in com.linxonline.mallet.io.serialisation.ByteInput.
Implemented in com.linxonline.mallet.io.serialisation.ByteInput.
Implemented in com.linxonline.mallet.io.serialisation.ByteInput.
Implemented in com.linxonline.mallet.io.serialisation.ByteInput.
Implemented in com.linxonline.mallet.io.serialisation.ByteInput.
Implemented in com.linxonline.mallet.io.serialisation.ByteInput.
Implemented in com.linxonline.mallet.io.serialisation.ByteInput.
Implemented in com.linxonline.mallet.io.serialisation.ByteInput.
Implemented in com.linxonline.mallet.io.serialisation.ByteInput.