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