public static Authority FromNative(Knuth.Native.Config.Authority native) { var res = new Authority(); res.Ip = native.ip; res.Port = native.port; return(res); }
public Knuth.Native.Config.Authority ToNative() { var native = new Knuth.Native.Config.Authority(); native.ip = this.Ip; native.port = this.Port; return(native); }
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); }
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); }