Mallet Engine  2
Entity-Component based game engine, written in Java.
 All Classes Namespaces Files Functions Variables
Public Member Functions
com.linxonline.mallet.io.serialisation.SerialiseInput Interface Reference
Inheritance diagram for com.linxonline.mallet.io.serialisation.SerialiseInput:
Inheritance graph
[legend]

List of all members.

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

Detailed Description

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.


Member Function Documentation


The documentation for this interface was generated from the following file:
 All Classes Namespaces Files Functions Variables