// Token: 0x060029BA RID: 10682 RVA: 0x000FA100 File Offset: 0x000F8300 public static string SerializeToString(BotNetMessage message) { StringBuilder stringBuilder = new StringBuilder(); stringBuilder.AppendLine(string.Format("PacketType: [ {0} ]", message.GetType())); stringBuilder.AppendLine(string.Format("SessionToken: [ {0} ]", message.SessionToken)); stringBuilder.AppendLine(string.Format("SecurityToken: [ {0} ]", message.SecurityToken)); return(stringBuilder.ToString()); }
// Token: 0x060029AD RID: 10669 RVA: 0x000FA060 File Offset: 0x000F8260 public static byte[] SerializePacket(BotNetMessage message) { byte[] array = message.SerializeMessage(); uint num = (uint)array.Length; byte[] array2 = new byte[(ulong)num + (ulong)((long)BotNetBasePacket.PacketSize)]; Array.Copy(array, 0, array2, BotNetBasePacket.PacketSize, array.Length); array = BitConverter.GetBytes(num); Array.Copy(array, 0, array2, 0, 4); return(array2); }
// Token: 0x060029A9 RID: 10665 RVA: 0x000069C3 File Offset: 0x00004BC3 public BotNetBasePacket(BotNetMessage message) { }