UnitType(ByteBuffer bb) throws IOException {
  this.name=Utilities.getString(bb);
  this.start=bb.getInt();
  this.count=bb.getInt();
}

UnitType ( ByteBuffer bb ) throws IOException { this . name = Utilities . getString ( bb ) ; this . start = bb . getInt ( ) ; this . count = bb . getInt ( ) ; }
creates a unit type by reading it from the given byte buffer .
