- public short get_byteslen(Ping this_ptr) {
- short ret = bindings.Ping_get_byteslen(this_ptr.ptr & ~1);
- this.ptrs_to.add(this_ptr);
- return ret;
+ /**
+ * 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);
+ Ping ret_hu_conv = new Ping(null, ret);
+ ret_hu_conv.ptrs_to.add(ret_hu_conv);
+ return ret_hu_conv;
+ }
+
+ /**
+ * Creates a copy of the Ping
+ */
+ public Ping clone() {
+ long ret = bindings.Ping_clone(this.ptr);
+ Ping ret_hu_conv = new Ping(null, ret);
+ ret_hu_conv.ptrs_to.add(this);
+ return ret_hu_conv;