com.github.rs3vans.krypto / java.io.Serializable / serializeToBytes

serializeToBytes

fun Serializable.serializeToBytes(): Bytes

Extension function that serializes any Serializable to an instance of Bytes using an ObjectOutputStream.