pub fn write_tlk<W: Write>(
writer: &mut W,
tlk: &Tlk,
) -> Result<(), TlkBinaryError>Expand description
Writes a TLK to a writer in KotOR TLK V3.0 binary format.
§Errors
TlkBinaryError::UnsupportedLanguageEncoding when the table’s language
id maps to no codepage, and TlkBinaryError::TextEncoding when an
entry’s text has no form in it.
TlkBinaryError::ValueOverflow when the entry count or a string offset
or length will not fit its u32, and TlkBinaryError::Io when the
writer fails, which can leave a partial file.