FrequencyDictionaryFileFormat

On-disk constants and header helpers for the .fdic file format.

Properties

Link copied to clipboard
const val FORMAT_VERSION: Byte = 1

Current .fdic format version.

Link copied to clipboard
const val FORMAT_VERSION_SIZE: Long = 1

Size in bytes of the format version field.

Link copied to clipboard
const val MAGIC_WORD: Int = 252510476

Magic word identifying a .fdic file, written as the first bytes of the header.

Link copied to clipboard
const val MAGIC_WORD_SIZE: Long = 4

Size in bytes of the magic word field.

Link copied to clipboard

Total size in bytes of the uncompressed header preceding the compressed payload.

Functions

Link copied to clipboard

Returns the current format version encoded as bytes for the file header.

Link copied to clipboard

Returns the magic word encoded as bytes for the file header.