class SerializedBytes<T : Any> : OpaqueBytes
A type safe wrapper around a byte array that contains a serialised object. You can call SerializedBytes.deserialize to get the original object back.
| <init> |
SerializedBytes(bytes: ByteArray)
A type safe wrapper around a byte array that contains a serialised object. You can call SerializedBytes.deserialize to get the original object back. |
| hash |
val hash: SecureHash |
| bytes |
val bytes: ByteArray |
| size |
val size: Int |
| writeToFile |
fun writeToFile(path: Path): Path |
| equals |
open fun equals(other: Any?): Boolean |
| hashCode |
open fun hashCode(): Int |
| open |
fun open(): ByteArrayInputStream
Returns a ByteArrayInputStream of the bytes |
| toString |
open fun toString(): String |
| deserialize |
fun SerializedBytes<WireTransaction>.deserialize(kryo: Kryo = THREAD_LOCAL_KRYO.get()): WireTransactionfun <T : Any> SerializedBytes<T>.deserialize(kryo: Kryo = THREAD_LOCAL_KRYO.get()): T |
| sha256 |
fun OpaqueBytes.sha256(): SHA256 |