|
OpenCPN Partial API docs
|
Unified Compressed File Access System. More...
#include <stdio.h>#include <string.h>#include <stdlib.h>#include <ctype.h>#include <zlib.h>#include <bzlib.h>Go to the source code of this file.
Classes | |
| struct | ZUFILE |
Macros | |
| #define | ZU_COMPRESS_AUTO -1 |
| #define | ZU_COMPRESS_NONE 0 |
| #define | ZU_COMPRESS_GZIP 1 |
| #define | ZU_COMPRESS_BZIP 2 |
| #define | ZU_BUFREADSIZE 256000 |
Functions | |
| ZUFILE * | zu_open (const char *fname, const char *mode, int type=ZU_COMPRESS_AUTO) |
| int | zu_close (ZUFILE *f) |
| int | zu_can_read_file (const char *fname) |
| int | zu_read (ZUFILE *f, void *buf, long len) |
| long | zu_tell (ZUFILE *f) |
| int | zu_seek (ZUFILE *f, long offset, int whence) |
| void | zu_rewind (ZUFILE *f) |
| long | zu_filesize (ZUFILE *f) |
| int | zu_bzSeekForward (ZUFILE *f, unsigned long nbytes) |
Unified Compressed File Access System.
Provides a consistent interface for reading both compressed and uncompressed GRIB files with support for:
Features:
This system allows the GRIB plugin to work seamlessly with compressed weather data files while handling the complexities of different compression formats internally.
Definition in file zuFile.h.
| int zu_bzSeekForward | ( | ZUFILE * | f, |
| unsigned long | nbytes | ||
| ) |
Definition at line 218 of file zuFile.cpp.
| int zu_can_read_file | ( | const char * | fname | ) |
Definition at line 25 of file zuFile.cpp.
| int zu_close | ( | ZUFILE * | f | ) |
Definition at line 128 of file zuFile.cpp.
| long zu_filesize | ( | ZUFILE * | f | ) |
Definition at line 159 of file zuFile.cpp.
| ZUFILE * zu_open | ( | const char * | fname, |
| const char * | mode, | ||
| int | type = ZU_COMPRESS_AUTO |
||
| ) |
Definition at line 37 of file zuFile.cpp.
| int zu_read | ( | ZUFILE * | f, |
| void * | buf, | ||
| long | len | ||
| ) |
Definition at line 109 of file zuFile.cpp.
| void zu_rewind | ( | ZUFILE * | f | ) |
Definition at line 241 of file zuFile.cpp.
| int zu_seek | ( | ZUFILE * | f, |
| long | offset, | ||
| int | whence | ||
| ) |
Definition at line 171 of file zuFile.cpp.
| long zu_tell | ( | ZUFILE * | f | ) |
Definition at line 156 of file zuFile.cpp.