LongSerializer


interface LongSerializer<T>


Serializes some T to and from a long.

Parameters
<T>

The custom type that can be serialized to a long.

Summary

Public functions

T?
deserialize(value: Long)

Deserializes a T from a long.

Long
serialize(instance: T)

Serializes a T to a long.

Public functions

deserialize

Added in 1.1.0-alpha06
fun deserialize(value: Long): T?

Deserializes a T from a long. Returns null if deserialization failed.

serialize

Added in 1.1.0-alpha06
fun serialize(instance: T): Long

Serializes a T to a long.