projects
/
ldk-java
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[C#] Update auto-generated C# bindings
[ldk-java]
/
c_sharp
/
src
/
org
/
ldk
/
structs
/
Record.cs
diff --git
a/c_sharp/src/org/ldk/structs/Record.cs
b/c_sharp/src/org/ldk/structs/Record.cs
index 560a6b5d62d1de2a399b911cb1785213185b1c41..54f0a5eb34d4bdb98ae6fa0d1e5c0b2ed2f7764a 100644
(file)
--- 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() {
* The message body.
*/
public string get_args() {
-
stri
ng ret = bindings.Record_get_args(this.ptr);
+
lo
ng ret = bindings.Record_get_args(this.ptr);
GC.KeepAlive(this);
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) {
}
/**
* 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);
}
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() {
* The module path of the message.
*/
public string get_module_path() {
-
stri
ng ret = bindings.Record_get_module_path(this.ptr);
+
lo
ng ret = bindings.Record_get_module_path(this.ptr);
GC.KeepAlive(this);
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) {
}
/**
* 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);
}
GC.KeepAlive(this);
GC.KeepAlive(val);
}
@@
-74,16
+78,18
@@
public class Record : CommonBase {
* The source file containing the message.
*/
public string get_file() {
* The source file containing the message.
*/
public string get_file() {
-
stri
ng ret = bindings.Record_get_file(this.ptr);
+
lo
ng ret = bindings.Record_get_file(this.ptr);
GC.KeepAlive(this);
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) {
}
/**
* 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);
}
GC.KeepAlive(this);
GC.KeepAlive(val);
}