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