IntPtr NativeFilePtr(string filename) { var result = MarshalUtils.Open(filename, out var filePtr); if (!result) { throw new VLCException("Could not get FILE * for log_set_file"); } return(filePtr); }