FileStorage

fun <T> FileStorage(serializer: Serializer<T>, produceFile: () -> File)(source)

Parameters

serializer

The serializer that can write to and from a byte array.

produceFile

The file producer that returns the file that will be read and written.