[C#] Update auto-generated C# bindings
[ldk-java] / c_sharp / src / org / ldk / structs / PathFailure.cs
index c4c30685d06ae269f4958914b2275d6e5fcced1a..598915210e87c71498b2b3b3636763ad04ce729f 100644 (file)
@@ -121,9 +121,11 @@ public class PathFailure : CommonBase {
         * Serialize the PathFailure object into a byte array which can be read by PathFailure_read
         */
        public byte[] write() {
-               byte[] ret = bindings.PathFailure_write(this.ptr);
+               long ret = bindings.PathFailure_write(this.ptr);
                GC.KeepAlive(this);
-               return ret;
+               if (ret >= 0 && ret <= 4096) { return null; }
+               byte[] ret_conv = InternalUtils.decodeUint8Array(ret);
+               return ret_conv;
        }
 
 }