Class 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 Detail

      • 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