BackupHeaderSerializer

internal interface BackupHeaderSerializer

Reads and writes a BackupHeader to data streams.

See the file specifications in backup/README.md

Inheritors

Types

Link copied to clipboard
object Companion
Link copied to clipboard

Functions

Link copied to clipboard
abstract 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
abstract fun parseHeader(source: <Error class: unknown class>): HeaderParseResult

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