- public void set_htlc_minimum_msat(RouteHint this_ptr, long val) {
- bindings.RouteHint_set_htlc_minimum_msat(this_ptr == null ? 0 : this_ptr.ptr & ~1, val);
- this.ptrs_to.add(this_ptr);
- }
-
- public RouteHint(byte[] src_node_id_arg, long short_channel_id_arg, RoutingFees fees_arg, short cltv_expiry_delta_arg, long htlc_minimum_msat_arg) {
- super(bindings.RouteHint_new(src_node_id_arg, short_channel_id_arg, fees_arg == null ? 0 : fees_arg.ptr & ~1, cltv_expiry_delta_arg, htlc_minimum_msat_arg));
- this.ptrs_to.add(fees_arg);
+ /**
+ * Read a RouteHint from a byte array, created by RouteHint_write
+ */
+ public static Result_RouteHintDecodeErrorZ read(byte[] ser) {
+ long ret = bindings.RouteHint_read(ser);
+ if (ret >= 0 && ret <= 4096) { return null; }
+ Result_RouteHintDecodeErrorZ ret_hu_conv = Result_RouteHintDecodeErrorZ.constr_from_ptr(ret);
+ return ret_hu_conv;