- public void set_htlc_id(UpdateFailHTLC this_ptr, long val) {
- bindings.UpdateFailHTLC_set_htlc_id(this_ptr.ptr & ~1, val);
- this.ptrs_to.add(this_ptr);
+ public void set_htlc_id(long val) {
+ bindings.UpdateFailHTLC_set_htlc_id(this.ptr, val);
+ }
+
+ public byte[] write() {
+ byte[] ret = bindings.UpdateFailHTLC_write(this.ptr);
+ return ret;
+ }
+
+ public static UpdateFailHTLC constructor_read(byte[] ser) {
+ long ret = bindings.UpdateFailHTLC_read(ser);
+ UpdateFailHTLC ret_hu_conv = new UpdateFailHTLC(null, ret);
+ return ret_hu_conv;