Exemple #1
0
        public static T GetValue <T>(this PacketRawReader reader)
        {
            ThrowIfArgumentError(reader);

            var con = (PacketConverter <T>)Cache.GetConverter <T>(reader.converters, false);
            var val = reader.Next(con);

            return(val);
        }
Exemple #2
0
        public static object GetValue(this PacketRawReader reader, Type type)
        {
            ThrowIfArgumentError(type);
            ThrowIfArgumentError(reader);

            var con = Cache.GetConverter(reader.converters, type, false);
            var val = reader.Next(con);

            return(val);
        }