off_t corsaro_file_rtell(corsaro_file_in_t *file) { /* refuse to read from a libtrace file */ assert(file->mode == CORSARO_FILE_MODE_ASCII || file->mode == CORSARO_FILE_MODE_BINARY || file->mode == CORSARO_FILE_MODE_UNKNOWN); assert(file->wand_io != NULL); return wandio_tell(file->wand_io); }
static int64_t peek_tell(io_t *io) { /* We don't actually maintain a read offset as such, so we want to * return the child's read offset */ return wandio_tell(DATA(io)->child); }