if (ptr != 0) { bindings.CResult_UpdateAddHTLCDecodeErrorZ_free(ptr); } super.finalize();
}
+ protected void force_free() {
+ if (ptr != 0) { bindings.CResult_UpdateAddHTLCDecodeErrorZ_free(ptr); ptr = 0; }
+ }
+
static Result_UpdateAddHTLCDecodeErrorZ constr_from_ptr(long ptr) {
if (bindings.CResult_UpdateAddHTLCDecodeErrorZ_is_ok(ptr)) {
return new Result_UpdateAddHTLCDecodeErrorZ_OK(null, ptr);
* Creates a new CResult_UpdateAddHTLCDecodeErrorZ in the success state.
*/
public static Result_UpdateAddHTLCDecodeErrorZ ok(org.ldk.structs.UpdateAddHTLC o) {
- long ret = bindings.CResult_UpdateAddHTLCDecodeErrorZ_ok(o == null ? 0 : o.ptr);
+ long ret = bindings.CResult_UpdateAddHTLCDecodeErrorZ_ok(o.ptr);
Reference.reachabilityFence(o);
if (ret >= 0 && ret <= 4096) { return null; }
Result_UpdateAddHTLCDecodeErrorZ ret_hu_conv = Result_UpdateAddHTLCDecodeErrorZ.constr_from_ptr(ret);