ass_read_file method

Pointer<ASS_Track> ass_read_file(
  1. Pointer<ASS_Library> library1,
  2. Pointer<Char> fname,
  3. Pointer<Char> codepage
)

\brief Read subtitles from file. \param library library handle \param fname file name \param codepage encoding (iconv format) \return newly allocated track or NULL on failure NOTE: On Microsoft Windows, when using WIN32-APIs, fname must be in either UTF-8 mixed with lone or paired UTF-16 surrogates encoded like in CESU-8 or the encoding accepted by fopen with the former taking precedence if both versions are valid and exist. On all other systems there is no need for special considerations like that.

Implementation

ffi.Pointer<ASS_Track> ass_read_file(
  ffi.Pointer<ASS_Library> library1,
  ffi.Pointer<ffi.Char> fname,
  ffi.Pointer<ffi.Char> codepage,
) {
  return _ass_read_file(
    library1,
    fname,
    codepage,
  );
}