[C#] Update auto-generated C# bindings
[ldk-java] / c_sharp / src / org / ldk / structs / CounterpartyForwardingInfo.cs
index 5afec689dd377a2f1da7423a13a60500983f3565..dc264cc09142172af7ecc4afe4c0406c92e075d5 100644 (file)
@@ -109,16 +109,18 @@ public class CounterpartyForwardingInfo : CommonBase {
         * Serialize the CounterpartyForwardingInfo object into a byte array which can be read by CounterpartyForwardingInfo_read
         */
        public byte[] write() {
-               byte[] ret = bindings.CounterpartyForwardingInfo_write(this.ptr);
+               long ret = bindings.CounterpartyForwardingInfo_write(this.ptr);
                GC.KeepAlive(this);
-               return ret;
+               if (ret >= 0 && ret <= 4096) { return null; }
+               byte[] ret_conv = InternalUtils.decodeUint8Array(ret);
+               return ret_conv;
        }
 
        /**
         * Read a CounterpartyForwardingInfo from a byte array, created by CounterpartyForwardingInfo_write
         */
        public static Result_CounterpartyForwardingInfoDecodeErrorZ read(byte[] ser) {
-               long ret = bindings.CounterpartyForwardingInfo_read(ser);
+               long ret = bindings.CounterpartyForwardingInfo_read(InternalUtils.encodeUint8Array(ser));
                GC.KeepAlive(ser);
                if (ret >= 0 && ret <= 4096) { return null; }
                Result_CounterpartyForwardingInfoDecodeErrorZ ret_hu_conv = Result_CounterpartyForwardingInfoDecodeErrorZ.constr_from_ptr(ret);