long ret = bindings.Init_get_remote_network_address(this.ptr);
GC.KeepAlive(this);
if (ret >= 0 && ret <= 4096) { return null; }
long ret = bindings.Init_get_remote_network_address(this.ptr);
GC.KeepAlive(this);
if (ret >= 0 && ret <= 4096) { return null; }
- public static Init of(org.ldk.structs.InitFeatures features_arg, org.ldk.structs.Option_CVec_ChainHashZZ networks_arg, org.ldk.structs.Option_NetAddressZ remote_network_address_arg) {
+ public static Init of(org.ldk.structs.InitFeatures features_arg, org.ldk.structs.Option_CVec_ThirtyTwoBytesZZ networks_arg, org.ldk.structs.Option_SocketAddressZ remote_network_address_arg) {
long ret = bindings.Init_new(features_arg == null ? 0 : features_arg.ptr, networks_arg.ptr, remote_network_address_arg.ptr);
GC.KeepAlive(features_arg);
GC.KeepAlive(networks_arg);
long ret = bindings.Init_new(features_arg == null ? 0 : features_arg.ptr, networks_arg.ptr, remote_network_address_arg.ptr);
GC.KeepAlive(features_arg);
GC.KeepAlive(networks_arg);
}
/**
* Read a Init from a byte array, created by Init_write
*/
public static Result_InitDecodeErrorZ read(byte[] ser) {
}
/**
* Read a Init from a byte array, created by Init_write
*/
public static Result_InitDecodeErrorZ read(byte[] ser) {
GC.KeepAlive(ser);
if (ret >= 0 && ret <= 4096) { return null; }
Result_InitDecodeErrorZ ret_hu_conv = Result_InitDecodeErrorZ.constr_from_ptr(ret);
GC.KeepAlive(ser);
if (ret >= 0 && ret <= 4096) { return null; }
Result_InitDecodeErrorZ ret_hu_conv = Result_InitDecodeErrorZ.constr_from_ptr(ret);