ReadUTFBytes() public method

public ReadUTFBytes ( ) : string
return string
Example #1
0
        public static out_of_cards UnPack(ByteArray reader)
        {
            out_of_cards tbl = new out_of_cards();

            tbl.id = reader.ReadUTFBytes();
            {
                UInt16 narr = reader.ReadUnsignedInt16();

                tbl.cards = new string[narr];

                for (int i = 0; i < narr; i++)
                {
                    tbl.cards[i] = reader.ReadUTFBytes();
                }
            }
            {
                UInt16 narr = reader.ReadUnsignedInt16();

                tbl.outOfCards = new string[narr];

                for (int i = 0; i < narr; i++)
                {
                    tbl.outOfCards[i] = reader.ReadUTFBytes();
                }
            }
            tbl.randomNum = reader.ReadUTFBytes();
            tbl.ty        = reader.ReadInt32();

            return(tbl);
        }
Example #2
0
        public static user_info UnPack(ByteArray reader)
        {
            user_info tbl = new user_info();

            tbl.name = reader.ReadUTFBytes();
            tbl.uid  = reader.ReadUTFBytes();

            return(tbl);
        }
Example #3
0
        public static login_info UnPack(ByteArray reader)
        {
            login_info tbl = new login_info();

            tbl.account  = reader.ReadUTFBytes();
            tbl.password = reader.ReadUTFBytes();

            return(tbl);
        }
Example #4
0
        public static chat_msg UnPack(ByteArray reader)
        {
            chat_msg tbl = new chat_msg();

            tbl.name    = reader.ReadUTFBytes();
            tbl.timeStr = reader.ReadUTFBytes();
            tbl.msg     = reader.ReadUTFBytes();

            return(tbl);
        }
Example #5
0
        public static grab_landowner UnPack(ByteArray reader)
        {
            grab_landowner tbl = new grab_landowner();

            tbl.roomId          = reader.ReadUTFBytes();
            tbl.ifGrab          = reader.ReadBoolean();
            tbl.uid             = reader.ReadUTFBytes();
            tbl.ifhavelandowner = reader.ReadBoolean();
            tbl.ifcall          = reader.ReadBoolean();

            return(tbl);
        }
Example #6
0
        public static error_info UnPack(ByteArray reader)
        {
            error_info tbl = new error_info();
            tbl.code = reader.ReadInt32();
            tbl.msg = reader.ReadUTFBytes();

            return tbl;
        }
Example #7
0
        public static entity_id UnPack(ByteArray reader)
        {
            entity_id tbl = new entity_id();

            tbl.id = reader.ReadUTFBytes();

            return(tbl);
        }
Example #8
0
        public static msg_string UnPack(ByteArray reader)
        {
            msg_string tbl = new msg_string();

            tbl.msg = reader.ReadUTFBytes();

            return(tbl);
        }
Example #9
0
        public static error_ack UnPack(ByteArray reader)
        {
            error_ack tbl = new error_ack();

            tbl.msg = reader.ReadUTFBytes();

            return(tbl);
        }
Example #10
0
        public static error_info UnPack(ByteArray reader)
        {
            error_info tbl = new error_info();

            tbl.code = reader.ReadInt32();
            tbl.msg  = reader.ReadUTFBytes();

            return(tbl);
        }
Example #11
0
        public static player_outof_card UnPack(ByteArray reader)
        {
            player_outof_card tbl = new player_outof_card();

            tbl.roomId = reader.ReadUTFBytes();
            {
                UInt16 narr = reader.ReadUnsignedInt16();

                tbl.cards = new string[narr];

                for (int i = 0; i < narr; i++)
                {
                    tbl.cards[i] = reader.ReadUTFBytes();
                }
            }

            return(tbl);
        }
Example #12
0
        public static user_login_info UnPack(ByteArray reader)
        {
            user_login_info tbl = new user_login_info();

            tbl.login_way          = reader.ReadInt32();
            tbl.open_udid          = reader.ReadUTFBytes();
            tbl.client_certificate = reader.ReadUTFBytes();
            tbl.client_version     = reader.ReadInt32();
            tbl.user_lang          = reader.ReadUTFBytes();
            tbl.app_id             = reader.ReadUTFBytes();
            tbl.os_version         = reader.ReadUTFBytes();
            tbl.device_name        = reader.ReadUTFBytes();
            tbl.device_id          = reader.ReadUTFBytes();
            tbl.device_id_type     = reader.ReadInt32();
            tbl.login_ip           = reader.ReadUTFBytes();

            return(tbl);
        }
Example #13
0
        public static game_over UnPack(ByteArray reader)
        {
            game_over tbl = new game_over();

            {
                UInt16 narr = reader.ReadUnsignedInt16();

                tbl.winId = new string[narr];

                for (int i = 0; i < narr; i++)
                {
                    tbl.winId[i] = reader.ReadUTFBytes();
                }
            }

            return(tbl);
        }
Example #14
0
        public static user_login_info UnPack(ByteArray reader)
        {
            user_login_info tbl = new user_login_info();
            tbl.login_way = reader.ReadInt32();
            tbl.open_udid = reader.ReadUTFBytes();
            tbl.client_certificate = reader.ReadUTFBytes();
            tbl.client_version = reader.ReadInt32();
            tbl.user_lang = reader.ReadUTFBytes();
            tbl.app_id = reader.ReadUTFBytes();
            tbl.os_version = reader.ReadUTFBytes();
            tbl.device_name = reader.ReadUTFBytes();
            tbl.device_id = reader.ReadUTFBytes();
            tbl.device_id_type = reader.ReadInt32();
            tbl.login_ip = reader.ReadUTFBytes();

            return tbl;
        }