Exemplo n.º 1
0
        public static Authority FromNative(Knuth.Native.Config.Authority native)
        {
            var res = new Authority();

            res.Ip   = native.ip;
            res.Port = native.port;
            return(res);
        }
Exemplo n.º 2
0
        public Knuth.Native.Config.Authority ToNative()
        {
            var native = new Knuth.Native.Config.Authority();

            native.ip   = this.Ip;
            native.port = this.Port;
            return(native);
        }
Exemplo n.º 3
0
        public static Authority FromNative(Knuth.Native.Config.Authority native)
        {
            var res = new Authority();

            // res.Ip = Helper.PtrToString(native.ip);
            res.Ip   = native.ip;
            res.Port = native.port;
            return(res);
        }
Exemplo n.º 4
0
        public Knuth.Native.Config.Authority ToNative()
        {
            var native = new Knuth.Native.Config.Authority();

            // native.ip = Helper.StringToPtr(this.Ip);
            native.ip   = this.Ip;
            native.port = this.Port;
            return(native);
        }