* An enum which can either contain a crate::lightning::util::events::HTLCDestination or not
*/
export class Option_HTLCDestinationZ extends CommonBase {
* An enum which can either contain a crate::lightning::util::events::HTLCDestination or not
*/
export class Option_HTLCDestinationZ extends CommonBase {
- protected constructor(_dummy: object, ptr: number) { super(ptr, bindings.COption_HTLCDestinationZ_free); }
+ protected constructor(_dummy: object, ptr: bigint) { super(ptr, bindings.COption_HTLCDestinationZ_free); }
const raw_ty: number = bindings.LDKCOption_HTLCDestinationZ_ty_from_ptr(ptr);
switch (raw_ty) {
case 0: return new Option_HTLCDestinationZ_Some(ptr);
const raw_ty: number = bindings.LDKCOption_HTLCDestinationZ_ty_from_ptr(ptr);
switch (raw_ty) {
case 0: return new Option_HTLCDestinationZ_Some(ptr);
* Constructs a new COption_HTLCDestinationZ containing a crate::lightning::util::events::HTLCDestination
*/
public static constructor_some(o: HTLCDestination): Option_HTLCDestinationZ {
* Constructs a new COption_HTLCDestinationZ containing a crate::lightning::util::events::HTLCDestination
*/
public static constructor_some(o: HTLCDestination): Option_HTLCDestinationZ {
const ret_hu_conv: Option_HTLCDestinationZ = Option_HTLCDestinationZ.constr_from_ptr(ret);
CommonBase.add_ref_from(ret_hu_conv, ret_hu_conv);
return ret_hu_conv;
const ret_hu_conv: Option_HTLCDestinationZ = Option_HTLCDestinationZ.constr_from_ptr(ret);
CommonBase.add_ref_from(ret_hu_conv, ret_hu_conv);
return ret_hu_conv;
* Constructs a new COption_HTLCDestinationZ containing nothing
*/
public static constructor_none(): Option_HTLCDestinationZ {
* Constructs a new COption_HTLCDestinationZ containing nothing
*/
public static constructor_none(): Option_HTLCDestinationZ {
const ret_hu_conv: Option_HTLCDestinationZ = Option_HTLCDestinationZ.constr_from_ptr(ret);
CommonBase.add_ref_from(ret_hu_conv, ret_hu_conv);
return ret_hu_conv;
}
const ret_hu_conv: Option_HTLCDestinationZ = Option_HTLCDestinationZ.constr_from_ptr(ret);
CommonBase.add_ref_from(ret_hu_conv, ret_hu_conv);
return ret_hu_conv;
}
- public clone_ptr(): number {
- const ret: number = bindings.COption_HTLCDestinationZ_clone_ptr(this.ptr);
+ public clone_ptr(): bigint {
+ const ret: bigint = bindings.COption_HTLCDestinationZ_clone_ptr(this.ptr);
* but with all dynamically-allocated buffers duplicated in new buffers.
*/
public clone(): Option_HTLCDestinationZ {
* but with all dynamically-allocated buffers duplicated in new buffers.
*/
public clone(): Option_HTLCDestinationZ {
const ret_hu_conv: Option_HTLCDestinationZ = Option_HTLCDestinationZ.constr_from_ptr(ret);
CommonBase.add_ref_from(ret_hu_conv, this);
return ret_hu_conv;
const ret_hu_conv: Option_HTLCDestinationZ = Option_HTLCDestinationZ.constr_from_ptr(ret);
CommonBase.add_ref_from(ret_hu_conv, this);
return ret_hu_conv;
export class Option_HTLCDestinationZ_Some extends Option_HTLCDestinationZ {
public some: HTLCDestination;
/* @internal */
export class Option_HTLCDestinationZ_Some extends Option_HTLCDestinationZ {
public some: HTLCDestination;
/* @internal */
const some_hu_conv: HTLCDestination = HTLCDestination.constr_from_ptr(some);
CommonBase.add_ref_from(some_hu_conv, this);
this.some = some_hu_conv;
const some_hu_conv: HTLCDestination = HTLCDestination.constr_from_ptr(some);
CommonBase.add_ref_from(some_hu_conv, this);
this.some = some_hu_conv;
/** A Option_HTLCDestinationZ of type None */
export class Option_HTLCDestinationZ_None extends Option_HTLCDestinationZ {
/* @internal */
/** A Option_HTLCDestinationZ of type None */
export class Option_HTLCDestinationZ_None extends Option_HTLCDestinationZ {
/* @internal */