Пример #1
0
        public void SetCapacity(int fixedLength, params string[] args)
        {
            byte[] bytes;

            _length = fixedLength;
            Queue<byte[]> strings = new Queue<byte[]>();
            for (int i = 0; i < args.Length; ++i)
            {
                bytes = ASCIIEncoding.BigEndianUnicode.GetBytes(args[i]);
                _length += bytes.Length;
                strings.Enqueue(bytes);
            }

            Writer = PacketWriter.CreateInstance(Length, strings);
            Writer.Write((byte)GetPacketType());
        }
Пример #2
0
 public void SetCapacity()
 {
     Writer = PacketWriter.CreateInstance(Length);
     Writer.Write((byte)GetPacketType());
 }