ProtoBufFile

class ProtoBufFile<T>(fileName: String, defaultValue: T, serializer: KSerializer<T>)

A delegate for loading and saving a value, in ProtoBuf, from a file.

Constructors

Link copied to clipboard
constructor(fileName: String, defaultValue: T, serializer: KSerializer<T>)

Properties

Link copied to clipboard
val value: T

Functions

Link copied to clipboard
operator fun getValue(thisRef: Any?, property: KProperty<*>): T
Link copied to clipboard
operator fun setValue(thisRef: Any?, property: KProperty<*>, newValue: T)