Default

Properties

Link copied to clipboard
const val CURRENT_HEADER_VERSION: Int = 4
Link copied to clipboard
const val MAXIMUM_SUPPORTED_VERSION: Int = 4
Link copied to clipboard
const val MINIMUM_SUPPORTED_VERSION: Int = 4
Link copied to clipboard
val SUPPORTED_VERSIONS: IntRange

Functions

Link copied to clipboard
open override fun headerToBytes(header: BackupHeader): ByteArray

Converts a BackupHeader into a byte buffer format, which can be stored in the beginning of a Backup file.

Link copied to clipboard
open override fun parseHeader(source: <Error class: unknown class>): HeaderParseResult

Consumes the first relevant bytes of the source, parses and returns a HeaderParseResult.