bot4dofus / Datafus

📚🥚 The Dofus database and socket events in JSON files. Includes the source code and more...
https://discord.gg/kNHsFcbUGp
MIT License
50 stars 13 forks source link

[A2] Fix `ByteArray` type #32

Closed LucBerge closed 1 year ago

LucBerge commented 1 year ago

In RawDataMessage.as, the field content is of type ByteArray.

It is serialized like a vector:

      public function serializeAs_RawDataMessage(output:ICustomDataOutput) : void
      {
         output.writeVarInt(this.content.length);
         for(var _i1:uint = 0; _i1 < this.content.length; _i1++)
         {
            output.writeByte(this.content[_i1]);
         }
      }

So it must be Vector<VarInt,Byte>.