Beispiel #1
0
        public override byte[] ToBuffer()
        {
            MemoryStream m = new MemoryStream();

            Helper.WriteU32(m, unk1);
            Helper.WriteStringList(m, unk2);
            return(m.ToArray());
        }
        public override byte[] ToBuffer()
        {
            MemoryStream result = new MemoryStream();

            Helper.WriteStringList(result, stationUrls);
            Helper.WriteString(result, className);
            MemoryStream m = new MemoryStream();

            Helper.WriteString(m, username);
            Helper.WriteString(m, onlineKey);
            Helper.WriteString(m, password);
            byte[] buff = m.ToArray();
            Helper.WriteU32(result, (uint)(buff.Length + 4));
            Helper.WriteU32(result, (uint)buff.Length);
            result.Write(buff, 0, buff.Length);
            return(result.ToArray());
        }