}
/**
- * Flat routing fee in satoshis
+ * Flat routing fee in millisatoshis.
*/
public int get_base_msat() {
int ret = bindings.RoutingFees_get_base_msat(this.ptr);
}
/**
- * Flat routing fee in satoshis
+ * Flat routing fee in millisatoshis.
*/
public void set_base_msat(int val) {
bindings.RoutingFees_set_base_msat(this.ptr, val);
}
/**
- * Checks if two RoutingFeess contain equal inner contents.
+ * Generates a non-cryptographic 64-bit hash of the RoutingFees.
*/
public long hash() {
long ret = bindings.RoutingFees_hash(this.ptr);
* Serialize the RoutingFees object into a byte array which can be read by RoutingFees_read
*/
public byte[] write() {
- byte[] ret = bindings.RoutingFees_write(this.ptr);
+ long ret = bindings.RoutingFees_write(this.ptr);
GC.KeepAlive(this);
- return ret;
+ if (ret >= 0 && ret <= 4096) { return null; }
+ byte[] ret_conv = InternalUtils.decodeUint8Array(ret);
+ return ret_conv;
}
/**
* Read a RoutingFees from a byte array, created by RoutingFees_write
*/
public static Result_RoutingFeesDecodeErrorZ read(byte[] ser) {
- long ret = bindings.RoutingFees_read(ser);
+ long ret = bindings.RoutingFees_read(InternalUtils.encodeUint8Array(ser));
GC.KeepAlive(ser);
if (ret >= 0 && ret <= 4096) { return null; }
Result_RoutingFeesDecodeErrorZ ret_hu_conv = Result_RoutingFeesDecodeErrorZ.constr_from_ptr(ret);