Пример #1
0
 // Reads 10 bytes.
 public void read(MyByteBuffer buffer) {
   this.gamesPlayed = buffer.getShort();
   this.gamesCompleted = buffer.getShort();
   this.rank = buffer.get();
   this.altarLevel = buffer.get();
   this.tech = buffer.getInt();
 }
Пример #2
0
 // Writes 10 bytes.
 public void write(MyByteBuffer buffer) {
   buffer.putShort(this.gamesPlayed);
   buffer.putShort(this.gamesCompleted);
   buffer.put(this.rank);
   buffer.put(this.altarLevel);
   buffer.putInt(this.tech);
 }