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