- public short get_byteslen(Ping this_ptr) {
- short ret = bindings.Ping_get_byteslen(this_ptr.ptr & ~1);
- this.ptrs_to.add(this_ptr);
+ /**
+ * Constructs a new Ping given each field
+ */
+ public static Ping of(short ponglen_arg, short byteslen_arg) {
+ long ret = bindings.Ping_new(ponglen_arg, byteslen_arg);
+ Reference.reachabilityFence(ponglen_arg);
+ Reference.reachabilityFence(byteslen_arg);
+ if (ret >= 0 && ret <= 4096) { return null; }
+ Ping ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new Ping(null, ret); }
+ ret_hu_conv.ptrs_to.add(ret_hu_conv);
+ return ret_hu_conv;
+ }
+
+ long clone_ptr() {
+ long ret = bindings.Ping_clone_ptr(this.ptr);
+ Reference.reachabilityFence(this);