public interface BinarySerialization
| Modifier and Type | Method and Description |
|---|---|
Transaction |
deserialize(byte[] payload)
It deserializes the symbol buffer payload into a transaction.
|
TransactionFactory<?> |
deserializeToFactory(byte[] payload)
It deserializes the symbol buffer payload into a transaction factory.
|
<T extends Transaction> |
getSize(T transaction)
It returns the transaction's byte array size useful to calculate its fee.
|
<T extends Transaction> |
serialize(T transaction)
It serializes a transaction into a byte array using the symbol buffer format.
|
<T extends Transaction> byte[] serialize(T transaction)
T - the type of the transactiontransaction - the transactionTransactionFactory<?> deserializeToFactory(byte[] payload)
payload - the byte array payloadTransactionFactory.Transaction deserialize(byte[] payload)
payload - the byte array payload<T extends Transaction> long getSize(T transaction)
T - the type of the transactiontransaction - the transaction