メインページ | モジュール | データ構造 | Directories | ファイル一覧 | データフィールド | グローバル | 関連ページ

gzfile.c

zlib あるいは gzip を用いた圧縮ファイルの読み込み [詳細]

#include <sent/stddefs.h>
#include <errno.h>
#include <zlib.h>

gzfile.cのインクルード依存関係図

ソースコードを見る。

関数

FILE * fopen_readfile (char *filename)
int fclose_readfile (FILE *fp)
size_t myfread (void *ptr, size_t size, size_t n, FILE *fp)
int myfgetc (FILE *fp)
int myfeof (FILE *fp)
FILE * fopen_writefile (char *filename)
int fclose_writefile (FILE *fp)
size_t myfwrite (void *ptr, size_t size, size_t n, FILE *fp)


説明

zlib あるいは gzip を用いた圧縮ファイルの読み込み

作者:
Akinobu LEE
日付:
Thu Feb 17 15:46:00 2005
圧縮ファイルの読み込みに対応したファイルのオープン・クローズ・ 読み込み関数群です.

コンパイル時に zlib 無い場合,gzip を用いて圧縮ファイルの展開を 行います.この場合,複数のファイルを同時に開くことは出来ませんので 注意してください.

Revision
1.1.1.1

gzfile.c で定義されています。


関数

FILE* fopen_readfile char *  filename  ) 
 

Open a file with zlib.

引数:
filename [in] file name to open
戻り値:
gzFile pointer if succeed, NULL on failure.

gzfile.c54 行で定義されています。

参照元 adin_file_open(), CMN_load_from_file(), init_dfa(), init_hmminfo(), init_ngram_arpa(), init_ngram_bin(), init_voca(), new_SS_load_from_file(), と rdparam().

int fclose_readfile FILE *  fp  ) 
 

Close a file previously opened by fopen_readfile().

引数:
fp [in] gzFile pointer
戻り値:
0 on success, -1 on error.

gzfile.c70 行で定義されています。

参照元 adin_file_close(), adin_file_open(), CMN_load_from_file(), init_dfa(), init_hmminfo(), init_ngram_arpa(), init_ngram_bin(), init_voca(), new_SS_load_from_file(), rdparam(), と setup_wav().

size_t myfread void *  ptr,
size_t  size,
size_t  n,
FILE *  fp
 

Read data from input stream opened by fopen_readfile().

引数:
ptr [out] data buffer
size [in] size of unit in bytes
n [in] number of unit to be read
fp [in] gzFile pointer
戻り値:
number of read units or EOF, -1 on error.

gzfile.c90 行で定義されています。

参照元 adin_file_open(), adin_file_read(), adin_stdin_read(), myread(), と rdn().

int myfgetc FILE *  fp  ) 
 

Read one character from input stream opened by fopen_readfile().

引数:
fp [in] gzFile pointer
戻り値:
the read character, or -1 on EOF or error.

gzfile.c109 行で定義されています。

参照元 rdn_str().

int myfeof FILE *  fp  ) 
 

Test if reached end of file, for files opened by fopen_readfile().

引数:
fp [in] gzFile pointer.
戻り値:
1 if already on EOF, 0 if otherwise.

gzfile.c124 行で定義されています。

参照元 adin_file_read().

FILE* fopen_writefile char *  filename  ) 
 

Open or create a file for writing (no compression supported),

引数:
filename [in] filename
戻り値:
the file pointer or NULL on failure.

gzfile.c312 行で定義されています。

参照元 wrwav_open().

int fclose_writefile FILE *  fp  ) 
 

Close file previously opened by open_writefile().

引数:
fp [in] file pointer
戻り値:
0 on success, -1 on failure.

gzfile.c331 行で定義されています。

参照元 wrwav_close().

size_t myfwrite void *  ptr,
size_t  size,
size_t  n,
FILE *  fp
 

Write data.

引数:
ptr [in] data buffer
size [in] size of unit in bytes
n [in] number of unit to write
fp [in] file pointer
戻り値:
the number of units successfully written, or 0 if EOF or failed.

gzfile.c350 行で定義されています。

参照元 mywrite(), と wrt().


Juliusに対してTue Mar 28 16:06:56 2006に生成されました。  doxygen 1.4.2