コード例 #1
0
ファイル: corsaro_file.c プロジェクト: CAIDA/corsaro
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);
}
コード例 #2
0
ファイル: ior-peek.c プロジェクト: wanduow/wandio
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);
}