static Result_AcceptChannelDecodeErrorZ constr_from_ptr(long ptr) {
if (bindings.CResult_AcceptChannelDecodeErrorZ_is_ok(ptr)) {
return new Result_AcceptChannelDecodeErrorZ_OK(null, ptr);
static Result_AcceptChannelDecodeErrorZ constr_from_ptr(long ptr) {
if (bindings.CResult_AcceptChannelDecodeErrorZ_is_ok(ptr)) {
return new Result_AcceptChannelDecodeErrorZ_OK(null, ptr);
* Creates a new CResult_AcceptChannelDecodeErrorZ in the success state.
*/
public static Result_AcceptChannelDecodeErrorZ ok(org.ldk.structs.AcceptChannel o) {
* Creates a new CResult_AcceptChannelDecodeErrorZ in the success state.
*/
public static Result_AcceptChannelDecodeErrorZ ok(org.ldk.structs.AcceptChannel o) {
Reference.reachabilityFence(o);
if (ret >= 0 && ret <= 4096) { return null; }
Result_AcceptChannelDecodeErrorZ ret_hu_conv = Result_AcceptChannelDecodeErrorZ.constr_from_ptr(ret);
Reference.reachabilityFence(o);
if (ret >= 0 && ret <= 4096) { return null; }
Result_AcceptChannelDecodeErrorZ ret_hu_conv = Result_AcceptChannelDecodeErrorZ.constr_from_ptr(ret);