- public void set_htlc_minimum_msat(long val) {
- bindings.RouteHint_set_htlc_minimum_msat(this.ptr, val);
- }
-
- public static RouteHint constructor_new(byte[] src_node_id_arg, long short_channel_id_arg, RoutingFees fees_arg, short cltv_expiry_delta_arg, long htlc_minimum_msat_arg) {
- long ret = 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);
- RouteHint ret_hu_conv = new RouteHint(null, ret);
- ret_hu_conv.ptrs_to.add(ret_hu_conv);
- ret_hu_conv.ptrs_to.add(fees_arg);
- return ret_hu_conv;
+ /**
+ * Serialize the RouteHint object into a byte array which can be read by RouteHint_read
+ */
+ public byte[] write() {
+ byte[] ret = bindings.RouteHint_write(this.ptr);
+ return ret;