static gboolean stanag4607_seek_read(wtap *wth, gint64 seek_off, wtap_rec *rec, Buffer *buf, int *err, gchar **err_info) { if (file_seek(wth->random_fh, seek_off, SEEK_SET, err) == -1) return FALSE; return stanag4607_read_file(wth, wth->random_fh, rec, buf, err, err_info); }
static gboolean stanag4607_read(wtap *wth, int *err, gchar **err_info, gint64 *data_offset) { gint64 offset; *err = 0; offset = file_tell(wth->fh); *data_offset = offset; return stanag4607_read_file(wth, wth->fh, &wth->phdr, wth->frame_buffer, err, err_info); }