Properly set CVec_u8Z to a byte[] which adds a ton more fn's
[ldk-java] / src / main / java / org / ldk / structs / OutPoint.java
index 12fffe1640066d52d07b20d2df1f39f31006f84e..a980f095193119f33d335f239fa0a957e38ead07 100644 (file)
@@ -47,7 +47,12 @@ public class OutPoint extends CommonBase {
                return ret;
        }
 
-       // Skipped OutPoint_write
+       public byte[] write(OutPoint obj) {
+               byte[] ret = bindings.OutPoint_write(obj == null ? 0 : obj.ptr & ~1);
+               this.ptrs_to.add(obj);
+               return ret;
+       }
+
        public OutPoint(byte[] ser) {
                super(bindings.OutPoint_read(ser));
        }