if (bindings.CResult_SignDecodeErrorZ_is_ok(ptr)) {
return new Result_SignDecodeErrorZ_OK(null, ptr);
} else {
if (bindings.CResult_SignDecodeErrorZ_is_ok(ptr)) {
return new Result_SignDecodeErrorZ_OK(null, ptr);
} else {
* Creates a new CResult_SignDecodeErrorZ in the success state.
*/
public static constructor_ok(o: Sign): Result_SignDecodeErrorZ {
* Creates a new CResult_SignDecodeErrorZ in the success state.
*/
public static constructor_ok(o: Sign): Result_SignDecodeErrorZ {
const ret_hu_conv: Result_SignDecodeErrorZ = Result_SignDecodeErrorZ.constr_from_ptr(ret);
CommonBase.add_ref_from(ret_hu_conv, o);
return ret_hu_conv;
const ret_hu_conv: Result_SignDecodeErrorZ = Result_SignDecodeErrorZ.constr_from_ptr(ret);
CommonBase.add_ref_from(ret_hu_conv, o);
return ret_hu_conv;
* Creates a new CResult_SignDecodeErrorZ in the error state.
*/
public static constructor_err(e: DecodeError): Result_SignDecodeErrorZ {
* Creates a new CResult_SignDecodeErrorZ in the error state.
*/
public static constructor_err(e: DecodeError): Result_SignDecodeErrorZ {
- public clone_ptr(): number {
- const ret: number = bindings.CResult_SignDecodeErrorZ_clone_ptr(this.ptr);
+ public clone_ptr(): bigint {
+ const ret: bigint = bindings.CResult_SignDecodeErrorZ_clone_ptr(this.ptr);
* but with all dynamically-allocated buffers duplicated in new buffers.
*/
public clone(): Result_SignDecodeErrorZ {
* but with all dynamically-allocated buffers duplicated in new buffers.
*/
public clone(): Result_SignDecodeErrorZ {
const ret_hu_conv: Sign = new Sign(null, res);
CommonBase.add_ref_from(ret_hu_conv, this);
this.res = ret_hu_conv;
const ret_hu_conv: Sign = new Sign(null, res);
CommonBase.add_ref_from(ret_hu_conv, this);
this.res = ret_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;