public void addToStreamEx(Bundle stream, FRIENDDATA v) { stream.writeUint8(v.status); stream.writeUint64(v.playerID); stream.writeUnicode(v.playerName); stream.writeInt32(v.playerBean); stream.writeEntitycall(v.playerEntity); }
public FRIENDDATA createFromStreamEx(MemoryStream stream) { FRIENDDATA datas = new FRIENDDATA(); datas.status = stream.readUint8(); datas.playerID = stream.readUint64(); datas.playerName = stream.readUnicode(); datas.playerBean = stream.readInt32(); datas.playerEntity = stream.readEntitycall(); return(datas); }