if (bindings.CResult_NetAddressDecodeErrorZ_is_ok(ptr)) {
return new Result_NetAddressDecodeErrorZ_OK(null, ptr);
} else {
if (bindings.CResult_NetAddressDecodeErrorZ_is_ok(ptr)) {
return new Result_NetAddressDecodeErrorZ_OK(null, ptr);
} else {
* Creates a new CResult_NetAddressDecodeErrorZ in the success state.
*/
public static constructor_ok(o: NetAddress): Result_NetAddressDecodeErrorZ {
* Creates a new CResult_NetAddressDecodeErrorZ in the success state.
*/
public static constructor_ok(o: NetAddress): Result_NetAddressDecodeErrorZ {
* Creates a new CResult_NetAddressDecodeErrorZ in the error state.
*/
public static constructor_err(e: DecodeError): Result_NetAddressDecodeErrorZ {
* Creates a new CResult_NetAddressDecodeErrorZ in the error state.
*/
public static constructor_err(e: DecodeError): Result_NetAddressDecodeErrorZ {
- public clone_ptr(): number {
- const ret: number = bindings.CResult_NetAddressDecodeErrorZ_clone_ptr(this.ptr);
+ public clone_ptr(): bigint {
+ const ret: bigint = bindings.CResult_NetAddressDecodeErrorZ_clone_ptr(this.ptr);
* but with all dynamically-allocated buffers duplicated in new buffers.
*/
public clone(): Result_NetAddressDecodeErrorZ {
* but with all dynamically-allocated buffers duplicated in new buffers.
*/
public clone(): Result_NetAddressDecodeErrorZ {
const res_hu_conv: NetAddress = NetAddress.constr_from_ptr(res);
CommonBase.add_ref_from(res_hu_conv, this);
this.res = res_hu_conv;
const res_hu_conv: NetAddress = NetAddress.constr_from_ptr(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;