Package org.ldk.structs
Class TransactionU16LenLimited
- java.lang.Object
-
- org.ldk.structs.TransactionU16LenLimited
-
public class TransactionU16LenLimited extends Object
A wrapper for a `Transaction` which can only be constructed with [`TransactionU16LenLimited::new`] if the `Transaction`'s consensus-serialized length is <= u16::MAX. Use [`TransactionU16LenLimited::into_transaction`] to convert into the contained `Transaction`.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TransactionU16LenLimitedclone()Creates a copy of the TransactionU16LenLimitedbooleaneq(TransactionU16LenLimited b)Checks if two TransactionU16LenLimiteds contain equal inner contents.booleanequals(Object o)protected voidfinalize()byte[]into_transaction()Consumes this `TransactionU16LenLimited` and returns its contained `Transaction`.static Result_TransactionU16LenLimitedNoneZof(byte[] transaction)Constructs a new `TransactionU16LenLimited` from a `Transaction` only if it's consensus- serialized length is <= u16::MAX.static Result_TransactionU16LenLimitedDecodeErrorZread(byte[] ser)Read a TransactionU16LenLimited from a byte array, created by TransactionU16LenLimited_writebyte[]write()Serialize the TransactionU16LenLimited object into a byte array which can be read by TransactionU16LenLimited_read
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
clone
public TransactionU16LenLimited clone()
Creates a copy of the TransactionU16LenLimited
-
eq
public boolean eq(TransactionU16LenLimited b)
Checks if two TransactionU16LenLimiteds contain equal inner contents. This ignores pointers and is_owned flags and looks at the values in fields. Two objects with NULL inner values will be considered "equal" here.
-
of
public static Result_TransactionU16LenLimitedNoneZ of(byte[] transaction)
Constructs a new `TransactionU16LenLimited` from a `Transaction` only if it's consensus- serialized length is <= u16::MAX.
-
into_transaction
public byte[] into_transaction()
Consumes this `TransactionU16LenLimited` and returns its contained `Transaction`.
-
write
public byte[] write()
Serialize the TransactionU16LenLimited object into a byte array which can be read by TransactionU16LenLimited_read
-
read
public static Result_TransactionU16LenLimitedDecodeErrorZ read(byte[] ser)
Read a TransactionU16LenLimited from a byte array, created by TransactionU16LenLimited_write
-
-