Esempio n. 1
0
        public static byte[] ReadByteArraySimple(this BasePacket stream)
        {
            if (stream.ReadBool())
            {
                int    length = stream.ReadUShort();
                byte[] data   = new byte[length];

                stream.ReadByteArray(data, 0, data.Length);

                return(data);
            }
            else
            {
                return(null);
            }
        }