* Two objects with NULL inner values will be considered "equal" here.
*/
public bool eq(org.ldk.structs.TransactionU16LenLimited b) {
- bool ret = bindings.TransactionU16LenLimited_eq(this.ptr, b == null ? 0 : b.ptr);
+ bool ret = bindings.TransactionU16LenLimited_eq(this.ptr, b.ptr);
GC.KeepAlive(this);
GC.KeepAlive(b);
if (this != null) { this.ptrs_to.AddLast(b); };
return ret_conv;
}
+ /**
+ * Returns a reference to the contained `Transaction`
+ */
+ public byte[] as_transaction() {
+ long ret = bindings.TransactionU16LenLimited_as_transaction(this.ptr);
+ GC.KeepAlive(this);
+ if (ret >= 0 && ret <= 4096) { return null; }
+ byte[] ret_conv = InternalUtils.decodeUint8Array(ret);
+ return ret_conv;
+ }
+
/**
* Serialize the TransactionU16LenLimited object into a byte array which can be read by TransactionU16LenLimited_read
*/