if (ptr != 0) { bindings.CResult_BlindedHopFeaturesDecodeErrorZ_free(ptr); } super.finalize();
}
+ protected void force_free() {
+ if (ptr != 0) { bindings.CResult_BlindedHopFeaturesDecodeErrorZ_free(ptr); ptr = 0; }
+ }
+
static Result_BlindedHopFeaturesDecodeErrorZ constr_from_ptr(long ptr) {
if (bindings.CResult_BlindedHopFeaturesDecodeErrorZ_is_ok(ptr)) {
return new Result_BlindedHopFeaturesDecodeErrorZ_OK(null, ptr);
* Creates a new CResult_BlindedHopFeaturesDecodeErrorZ in the success state.
*/
public static Result_BlindedHopFeaturesDecodeErrorZ ok(org.ldk.structs.BlindedHopFeatures o) {
- long ret = bindings.CResult_BlindedHopFeaturesDecodeErrorZ_ok(o == null ? 0 : o.ptr);
+ long ret = bindings.CResult_BlindedHopFeaturesDecodeErrorZ_ok(o.ptr);
Reference.reachabilityFence(o);
if (ret >= 0 && ret <= 4096) { return null; }
Result_BlindedHopFeaturesDecodeErrorZ ret_hu_conv = Result_BlindedHopFeaturesDecodeErrorZ.constr_from_ptr(ret);