readFdic

expect suspend fun readFdic(path: String): FrequencyDictionary(source)

Reads and decodes the .fdic file at path.

Return

the decoded dictionary.

Throws

if the file is malformed or its format is unsupported.

if the decoded data fails validation.


expect suspend fun readFdic(bytes: ByteArray): FrequencyDictionary(source)

Decodes .fdic data from bytes.

Return

the decoded dictionary.

Throws

if the data is malformed or its format is unsupported.

if the decoded data fails validation.

actual suspend fun readFdic(path: String): FrequencyDictionary(source)

Reads and decodes the .fdic file at path.

Return

the decoded dictionary.

Throws

if the file is malformed or its format is unsupported.

if the decoded data fails validation.


actual suspend fun readFdic(bytes: ByteArray): FrequencyDictionary(source)

Decodes .fdic data from bytes.

Return

the decoded dictionary.

Throws

if the data is malformed or its format is unsupported.

if the decoded data fails validation.

suspend fun readFdic(path: Path): FrequencyDictionary(source)
fun readFdic(inputSource: Source): FrequencyDictionary(source)


actual suspend fun readFdic(path: String): FrequencyDictionary(source)

Reads and decodes the .fdic file at path.

Return

the decoded dictionary.

Throws

if the file is malformed or its format is unsupported.

if the decoded data fails validation.


actual suspend fun readFdic(bytes: ByteArray): FrequencyDictionary(source)

Decodes .fdic data from bytes.

Return

the decoded dictionary.

Throws

if the data is malformed or its format is unsupported.

if the decoded data fails validation.