1 package org.ldk.structs;
3 import org.ldk.impl.bindings;
4 import org.ldk.enums.*;
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();
13 public Pong(Pong orig) {
14 super(bindings.Pong_clone(orig.ptr & ~1));
15 this.ptrs_to.add(orig);
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);
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);
29 public Pong(short byteslen_arg) {
30 super(bindings.Pong_new(byteslen_arg));