X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=c_sharp%2Fsrc%2Forg%2Fldk%2Fstructs%2FRecord.cs;fp=c_sharp%2Fsrc%2Forg%2Fldk%2Fstructs%2FRecord.cs;h=54f0a5eb34d4bdb98ae6fa0d1e5c0b2ed2f7764a;hb=8de7213fbf663ff60322896282dad51e8ab2f001;hp=560a6b5d62d1de2a399b911cb1785213185b1c41;hpb=afc50e5d491a11364849383b75a8f939df703bac;p=ldk-java diff --git a/c_sharp/src/org/ldk/structs/Record.cs b/c_sharp/src/org/ldk/structs/Record.cs index 560a6b5d..54f0a5eb 100644 --- a/c_sharp/src/org/ldk/structs/Record.cs +++ b/c_sharp/src/org/ldk/structs/Record.cs @@ -38,16 +38,18 @@ public class Record : CommonBase { * The message body. */ public string get_args() { - string ret = bindings.Record_get_args(this.ptr); + long ret = bindings.Record_get_args(this.ptr); GC.KeepAlive(this); - return ret; + if (ret >= 0 && ret <= 4096) { return null; } + string ret_conv = InternalUtils.decodeString(ret); + return ret_conv; } /** * The message body. */ public void set_args(string val) { - bindings.Record_set_args(this.ptr, val); + bindings.Record_set_args(this.ptr, InternalUtils.encodeString(val)); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -56,16 +58,18 @@ public class Record : CommonBase { * The module path of the message. */ public string get_module_path() { - string ret = bindings.Record_get_module_path(this.ptr); + long ret = bindings.Record_get_module_path(this.ptr); GC.KeepAlive(this); - return ret; + if (ret >= 0 && ret <= 4096) { return null; } + string ret_conv = InternalUtils.decodeString(ret); + return ret_conv; } /** * The module path of the message. */ public void set_module_path(string val) { - bindings.Record_set_module_path(this.ptr, val); + bindings.Record_set_module_path(this.ptr, InternalUtils.encodeString(val)); GC.KeepAlive(this); GC.KeepAlive(val); } @@ -74,16 +78,18 @@ public class Record : CommonBase { * The source file containing the message. */ public string get_file() { - string ret = bindings.Record_get_file(this.ptr); + long ret = bindings.Record_get_file(this.ptr); GC.KeepAlive(this); - return ret; + if (ret >= 0 && ret <= 4096) { return null; } + string ret_conv = InternalUtils.decodeString(ret); + return ret_conv; } /** * The source file containing the message. */ public void set_file(string val) { - bindings.Record_set_file(this.ptr, val); + bindings.Record_set_file(this.ptr, InternalUtils.encodeString(val)); GC.KeepAlive(this); GC.KeepAlive(val); }