]> git.bitcoin.ninja Git - ldk-java/blob - src/main/java/org/ldk/structs/Pong.java
76b24b1bcf30d448cf031a7c0f6952d8b3008c4f
[ldk-java] / src / main / java / org / ldk / structs / Pong.java
1 package org.ldk.structs;
2
3 import org.ldk.impl.bindings;
4 import org.ldk.enums.*;
5
6 public class Pong extends CommonBase {
7         Pong(Object _dummy, long ptr) { super(ptr); }
8         @Override @SuppressWarnings("deprecation")
9         protected void finalize() throws Throwable {
10                 bindings.Pong_free(ptr); super.finalize();
11         }
12
13         public Pong(Pong orig) {
14                 super(bindings.Pong_clone(orig.ptr & ~1));
15                 this.ptrs_to.add(orig);
16         }
17
18         public short get_byteslen(Pong this_ptr) {
19                 short ret = bindings.Pong_get_byteslen(this_ptr.ptr & ~1);
20                 this.ptrs_to.add(this_ptr);
21                 return ret;
22         }
23
24         public void set_byteslen(Pong this_ptr, short val) {
25                 bindings.Pong_set_byteslen(this_ptr.ptr & ~1, val);
26                 this.ptrs_to.add(this_ptr);
27         }
28
29         public Pong(short byteslen_arg) {
30                 super(bindings.Pong_new(byteslen_arg));
31         }
32
33         // Skipped Pong_write
34         // Skipped Pong_read
35 }