public void serialize(ByteArray data) {
   data.writeBoolean(this._ready);
   data.writeByte(this._type);
 }