SegmentInfoFormat

abstract class SegmentInfoFormat

Expert: Controls the format of the SegmentInfo (segment metadata file).

See also

Inheritors

Functions

Link copied to clipboard
abstract fun read(directory: Directory, segmentName: String, segmentID: ByteArray, context: IOContext): SegmentInfo

Read SegmentInfo data from a directory.

Link copied to clipboard
abstract fun write(dir: Directory, info: SegmentInfo, ioContext: IOContext)

Write SegmentInfo data. The codec must add its SegmentInfo filename(s) to info before doing i/o.