* An enum which can either contain a crate::c_types::derived::CVec_NetAddressZ or not
*/
export class Option_CVec_NetAddressZZ extends CommonBase {
- protected constructor(_dummy: object, ptr: number) { super(ptr, bindings.COption_CVec_NetAddressZZ_free); }
+ protected constructor(_dummy: object, ptr: bigint) { super(ptr, bindings.COption_CVec_NetAddressZZ_free); }
/* @internal */
- public static constr_from_ptr(ptr: number): Option_CVec_NetAddressZZ {
+ public static constr_from_ptr(ptr: bigint): Option_CVec_NetAddressZZ {
const raw_ty: number = bindings.LDKCOption_CVec_NetAddressZZ_ty_from_ptr(ptr);
switch (raw_ty) {
case 0: return new Option_CVec_NetAddressZZ_Some(ptr);
* Constructs a new COption_CVec_NetAddressZZ containing a crate::c_types::derived::CVec_NetAddressZ
*/
public static constructor_some(o: NetAddress[]): Option_CVec_NetAddressZZ {
- const ret: number = bindings.COption_CVec_NetAddressZZ_some(bindings.encodeUint32Array(o != null ? o.map(o_conv_12 => CommonBase.get_ptr_of(o_conv_12)) : null));
+ const ret: bigint = bindings.COption_CVec_NetAddressZZ_some(bindings.encodeUint64Array(o != null ? o.map(o_conv_12 => CommonBase.get_ptr_of(o_conv_12)) : null));
const ret_hu_conv: Option_CVec_NetAddressZZ = Option_CVec_NetAddressZZ.constr_from_ptr(ret);
CommonBase.add_ref_from(ret_hu_conv, ret_hu_conv);
return ret_hu_conv;
* Constructs a new COption_CVec_NetAddressZZ containing nothing
*/
public static constructor_none(): Option_CVec_NetAddressZZ {
- const ret: number = bindings.COption_CVec_NetAddressZZ_none();
+ const ret: bigint = bindings.COption_CVec_NetAddressZZ_none();
const ret_hu_conv: Option_CVec_NetAddressZZ = Option_CVec_NetAddressZZ.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_CVec_NetAddressZZ_clone_ptr(this.ptr);
+ public clone_ptr(): bigint {
+ const ret: bigint = bindings.COption_CVec_NetAddressZZ_clone_ptr(this.ptr);
return ret;
}
* but with all dynamically-allocated buffers duplicated in new buffers.
*/
public clone(): Option_CVec_NetAddressZZ {
- const ret: number = bindings.COption_CVec_NetAddressZZ_clone(this.ptr);
+ const ret: bigint = bindings.COption_CVec_NetAddressZZ_clone(this.ptr);
const ret_hu_conv: Option_CVec_NetAddressZZ = Option_CVec_NetAddressZZ.constr_from_ptr(ret);
CommonBase.add_ref_from(ret_hu_conv, this);
return ret_hu_conv;
export class Option_CVec_NetAddressZZ_Some extends Option_CVec_NetAddressZZ {
public some: NetAddress[];
/* @internal */
- public constructor(ptr: number) {
+ public constructor(ptr: bigint) {
super(null, ptr);
const some: number = bindings.LDKCOption_CVec_NetAddressZZ_Some_get_some(ptr);
const some_conv_12_len: number = bindings.getArrayLength(some);
const some_conv_12_arr: NetAddress[] = new Array(some_conv_12_len).fill(null);
for (var m = 0; m < some_conv_12_len; m++) {
- const some_conv_12: number = bindings.getU32ArrayElem(some, m);
+ const some_conv_12: bigint = bindings.getU64ArrayElem(some, m);
const some_conv_12_hu_conv: NetAddress = NetAddress.constr_from_ptr(some_conv_12);
CommonBase.add_ref_from(some_conv_12_hu_conv, this);
some_conv_12_arr[m] = some_conv_12_hu_conv;
/** A Option_CVec_NetAddressZZ of type None */
export class Option_CVec_NetAddressZZ_None extends Option_CVec_NetAddressZZ {
/* @internal */
- public constructor(ptr: number) {
+ public constructor(ptr: bigint) {
super(null, ptr);
}
}