if (bindings.CResult_UnsignedChannelAnnouncementDecodeErrorZ_is_ok(ptr)) {
return new Result_UnsignedChannelAnnouncementDecodeErrorZ_OK(null, ptr);
} else {
if (bindings.CResult_UnsignedChannelAnnouncementDecodeErrorZ_is_ok(ptr)) {
return new Result_UnsignedChannelAnnouncementDecodeErrorZ_OK(null, ptr);
} else {
* Creates a new CResult_UnsignedChannelAnnouncementDecodeErrorZ in the success state.
*/
public static constructor_ok(o: UnsignedChannelAnnouncement): Result_UnsignedChannelAnnouncementDecodeErrorZ {
* Creates a new CResult_UnsignedChannelAnnouncementDecodeErrorZ in the success state.
*/
public static constructor_ok(o: UnsignedChannelAnnouncement): Result_UnsignedChannelAnnouncementDecodeErrorZ {
* Creates a new CResult_UnsignedChannelAnnouncementDecodeErrorZ in the error state.
*/
public static constructor_err(e: DecodeError): Result_UnsignedChannelAnnouncementDecodeErrorZ {
* Creates a new CResult_UnsignedChannelAnnouncementDecodeErrorZ in the error state.
*/
public static constructor_err(e: DecodeError): Result_UnsignedChannelAnnouncementDecodeErrorZ {
- public clone_ptr(): number {
- const ret: number = bindings.CResult_UnsignedChannelAnnouncementDecodeErrorZ_clone_ptr(this.ptr);
+ public clone_ptr(): bigint {
+ const ret: bigint = bindings.CResult_UnsignedChannelAnnouncementDecodeErrorZ_clone_ptr(this.ptr);
* but with all dynamically-allocated buffers duplicated in new buffers.
*/
public clone(): Result_UnsignedChannelAnnouncementDecodeErrorZ {
* but with all dynamically-allocated buffers duplicated in new buffers.
*/
public clone(): Result_UnsignedChannelAnnouncementDecodeErrorZ {
const res_hu_conv: UnsignedChannelAnnouncement = new UnsignedChannelAnnouncement(null, res);
CommonBase.add_ref_from(res_hu_conv, this);
this.res = res_hu_conv;
const res_hu_conv: UnsignedChannelAnnouncement = new UnsignedChannelAnnouncement(null, res);
CommonBase.add_ref_from(res_hu_conv, this);
this.res = res_hu_conv;
const err_hu_conv: DecodeError = new DecodeError(null, err);
CommonBase.add_ref_from(err_hu_conv, this);
this.err = err_hu_conv;
const err_hu_conv: DecodeError = new DecodeError(null, err);
CommonBase.add_ref_from(err_hu_conv, this);
this.err = err_hu_conv;