*/
public void set_src_node_id(byte[] val) {
bindings.RouteHintHop_set_src_node_id(this.ptr, InternalUtils.check_arr_len(val, 33));
*/
public void set_src_node_id(byte[] val) {
bindings.RouteHintHop_set_src_node_id(this.ptr, InternalUtils.check_arr_len(val, 33));
*/
public long get_short_channel_id() {
long ret = bindings.RouteHintHop_get_short_channel_id(this.ptr);
*/
public long get_short_channel_id() {
long ret = bindings.RouteHintHop_get_short_channel_id(this.ptr);
*/
public void set_short_channel_id(long val) {
bindings.RouteHintHop_set_short_channel_id(this.ptr, val);
*/
public void set_short_channel_id(long val) {
bindings.RouteHintHop_set_short_channel_id(this.ptr, val);
if (ret >= 0 && ret <= 4096) { return null; }
RoutingFees ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new RoutingFees(null, ret); }
ret_hu_conv.ptrs_to.add(this);
if (ret >= 0 && ret <= 4096) { return null; }
RoutingFees ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new RoutingFees(null, ret); }
ret_hu_conv.ptrs_to.add(this);
*/
public void set_fees(RoutingFees val) {
bindings.RouteHintHop_set_fees(this.ptr, val == null ? 0 : val.ptr & ~1);
*/
public void set_fees(RoutingFees val) {
bindings.RouteHintHop_set_fees(this.ptr, val == null ? 0 : val.ptr & ~1);
*/
public short get_cltv_expiry_delta() {
short ret = bindings.RouteHintHop_get_cltv_expiry_delta(this.ptr);
*/
public short get_cltv_expiry_delta() {
short ret = bindings.RouteHintHop_get_cltv_expiry_delta(this.ptr);
*/
public void set_cltv_expiry_delta(short val) {
bindings.RouteHintHop_set_cltv_expiry_delta(this.ptr, val);
*/
public void set_cltv_expiry_delta(short val) {
bindings.RouteHintHop_set_cltv_expiry_delta(this.ptr, val);
*/
public Option_u64Z get_htlc_minimum_msat() {
long ret = bindings.RouteHintHop_get_htlc_minimum_msat(this.ptr);
*/
public Option_u64Z get_htlc_minimum_msat() {
long ret = bindings.RouteHintHop_get_htlc_minimum_msat(this.ptr);
if (ret >= 0 && ret <= 4096) { return null; }
Option_u64Z ret_hu_conv = Option_u64Z.constr_from_ptr(ret);
ret_hu_conv.ptrs_to.add(this);
if (ret >= 0 && ret <= 4096) { return null; }
Option_u64Z ret_hu_conv = Option_u64Z.constr_from_ptr(ret);
ret_hu_conv.ptrs_to.add(this);
*/
public void set_htlc_minimum_msat(Option_u64Z val) {
bindings.RouteHintHop_set_htlc_minimum_msat(this.ptr, val.ptr);
*/
public void set_htlc_minimum_msat(Option_u64Z val) {
bindings.RouteHintHop_set_htlc_minimum_msat(this.ptr, val.ptr);
*/
public Option_u64Z get_htlc_maximum_msat() {
long ret = bindings.RouteHintHop_get_htlc_maximum_msat(this.ptr);
*/
public Option_u64Z get_htlc_maximum_msat() {
long ret = bindings.RouteHintHop_get_htlc_maximum_msat(this.ptr);
if (ret >= 0 && ret <= 4096) { return null; }
Option_u64Z ret_hu_conv = Option_u64Z.constr_from_ptr(ret);
ret_hu_conv.ptrs_to.add(this);
if (ret >= 0 && ret <= 4096) { return null; }
Option_u64Z ret_hu_conv = Option_u64Z.constr_from_ptr(ret);
ret_hu_conv.ptrs_to.add(this);
*/
public void set_htlc_maximum_msat(Option_u64Z val) {
bindings.RouteHintHop_set_htlc_maximum_msat(this.ptr, val.ptr);
*/
public void set_htlc_maximum_msat(Option_u64Z val) {
bindings.RouteHintHop_set_htlc_maximum_msat(this.ptr, val.ptr);
*/
public static RouteHintHop of(byte[] src_node_id_arg, long short_channel_id_arg, RoutingFees fees_arg, short cltv_expiry_delta_arg, Option_u64Z htlc_minimum_msat_arg, Option_u64Z htlc_maximum_msat_arg) {
long ret = bindings.RouteHintHop_new(InternalUtils.check_arr_len(src_node_id_arg, 33), short_channel_id_arg, fees_arg == null ? 0 : fees_arg.ptr & ~1, cltv_expiry_delta_arg, htlc_minimum_msat_arg.ptr, htlc_maximum_msat_arg.ptr);
*/
public static RouteHintHop of(byte[] src_node_id_arg, long short_channel_id_arg, RoutingFees fees_arg, short cltv_expiry_delta_arg, Option_u64Z htlc_minimum_msat_arg, Option_u64Z htlc_maximum_msat_arg) {
long ret = bindings.RouteHintHop_new(InternalUtils.check_arr_len(src_node_id_arg, 33), short_channel_id_arg, fees_arg == null ? 0 : fees_arg.ptr & ~1, cltv_expiry_delta_arg, htlc_minimum_msat_arg.ptr, htlc_maximum_msat_arg.ptr);
+ Reference.reachabilityFence(src_node_id_arg);
+ Reference.reachabilityFence(short_channel_id_arg);
+ Reference.reachabilityFence(fees_arg);
+ Reference.reachabilityFence(cltv_expiry_delta_arg);
+ Reference.reachabilityFence(htlc_minimum_msat_arg);
+ Reference.reachabilityFence(htlc_maximum_msat_arg);
if (ret >= 0 && ret <= 4096) { return null; }
RouteHintHop ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new RouteHintHop(null, ret); }
ret_hu_conv.ptrs_to.add(ret_hu_conv);
if (ret >= 0 && ret <= 4096) { return null; }
RouteHintHop ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new RouteHintHop(null, ret); }
ret_hu_conv.ptrs_to.add(ret_hu_conv);
if (ret >= 0 && ret <= 4096) { return null; }
RouteHintHop ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new RouteHintHop(null, ret); }
ret_hu_conv.ptrs_to.add(this);
if (ret >= 0 && ret <= 4096) { return null; }
RouteHintHop ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new RouteHintHop(null, ret); }
ret_hu_conv.ptrs_to.add(this);
/**
* Checks if two RouteHintHops contain equal inner contents.
* This ignores pointers and is_owned flags and looks at the values in fields.
/**
* Checks if two RouteHintHops contain equal inner contents.
* This ignores pointers and is_owned flags and looks at the values in fields.
*/
public boolean eq(RouteHintHop b) {
boolean ret = bindings.RouteHintHop_eq(this.ptr, b == null ? 0 : b.ptr & ~1);
*/
public boolean eq(RouteHintHop b) {
boolean ret = bindings.RouteHintHop_eq(this.ptr, b == null ? 0 : b.ptr & ~1);
/**
* Serialize the RouteHintHop object into a byte array which can be read by RouteHintHop_read
*/
public byte[] write() {
byte[] ret = bindings.RouteHintHop_write(this.ptr);
/**
* Serialize the RouteHintHop object into a byte array which can be read by RouteHintHop_read
*/
public byte[] write() {
byte[] ret = bindings.RouteHintHop_write(this.ptr);
*/
public static Result_RouteHintHopDecodeErrorZ read(byte[] ser) {
long ret = bindings.RouteHintHop_read(ser);
*/
public static Result_RouteHintHopDecodeErrorZ read(byte[] ser) {
long ret = bindings.RouteHintHop_read(ser);
if (ret >= 0 && ret <= 4096) { return null; }
Result_RouteHintHopDecodeErrorZ ret_hu_conv = Result_RouteHintHopDecodeErrorZ.constr_from_ptr(ret);
return ret_hu_conv;
if (ret >= 0 && ret <= 4096) { return null; }
Result_RouteHintHopDecodeErrorZ ret_hu_conv = Result_RouteHintHopDecodeErrorZ.constr_from_ptr(ret);
return ret_hu_conv;