- public void set_byteslen(Pong this_ptr, short val) {
- bindings.Pong_set_byteslen(this_ptr == null ? 0 : this_ptr.ptr & ~1, val);
- this.ptrs_to.add(this_ptr);
+ /**
+ * Constructs a new Pong given each field
+ */
+ public static Pong of(short byteslen_arg) {
+ long ret = bindings.Pong_new(byteslen_arg);
+ Reference.reachabilityFence(byteslen_arg);
+ if (ret >= 0 && ret <= 4096) { return null; }
+ Pong ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new Pong(null, ret); }
+ ret_hu_conv.ptrs_to.add(ret_hu_conv);
+ return ret_hu_conv;
+ }
+
+ long clone_ptr() {
+ long ret = bindings.Pong_clone_ptr(this.ptr);
+ Reference.reachabilityFence(this);
+ return ret;