+ /**
+ * Serialize the StaticPaymentOutputDescriptor object into a byte array which can be read by StaticPaymentOutputDescriptor_read
+ */
+ public byte[] write() {
+ byte[] ret = bindings.StaticPaymentOutputDescriptor_write(this.ptr);
+ return ret;
+ }
+
+ /**
+ * Read a StaticPaymentOutputDescriptor from a byte array, created by StaticPaymentOutputDescriptor_write
+ */
+ public static Result_StaticPaymentOutputDescriptorDecodeErrorZ read(byte[] ser) {
+ long ret = bindings.StaticPaymentOutputDescriptor_read(ser);
+ if (ret >= 0 && ret <= 4096) { return null; }
+ Result_StaticPaymentOutputDescriptorDecodeErrorZ ret_hu_conv = Result_StaticPaymentOutputDescriptorDecodeErrorZ.constr_from_ptr(ret);
+ return ret_hu_conv;
+ }
+