NCBI C++ ToolKit
|
#include <ncbi_pch.hpp>
#include <ctools/ctransition/ncbimem.hpp>
#include <ctools/ctransition/ncbierr.hpp>
#include <assert.h>
#include "ct_nlmzip_i.h"
Go to the source code of this file.
Go to the SVN repository for this file.
Classes | |
struct | cacher_t |
struct | compressor_t |
Functions | |
BEGIN_CTRANSITION_SCOPE fci_t LIBCALL | fci_open (Pointer data, Int4(*proc_buf)(Pointer ptr, CharPtr buf, Int4 count), Int4(*pclose)(Pointer ptr, int commit)) |
static Int4 LIBCALLBACK | cacher_read (Pointer ptr, CharPtr buf, Int4 count) |
static Int4 LIBCALLBACK | cacher_write (Pointer ptr, CharPtr buf, Int4 count) |
static Int4 LIBCALLBACK | cacher_close (Pointer ptr, int commit) |
fci_t LIBCALL | cacher_open (fci_t stream, int max_cache_size, int read) |
static void | compressor_header (compressor_t *db, UcharPtr header, int read) |
static Int4 LIBCALLBACK | compressor_read (Pointer ptr, CharPtr obuf, Int4 count) |
static Int4 LIBCALLBACK | compressor_write (Pointer ptr, CharPtr buf, Int4 count) |
static Int4 LIBCALLBACK | compressor_close (Pointer ptr, int commit) |
fci_t LIBCALL | compressor_open (fci_t stream, int max_buffer_size, int read) |
|
static |
Definition at line 265 of file ct_nlmzip_streamprocs.cpp.
References cacher_t::buf, cacher_t::cache_size, fci_t::close, fci_t::data, cacher_t::eos, len, cacher_t::len, Nlm_MemFree(), fci_t::proc_buf, cacher_t::read, cacher_t::src, and cacher_t::start.
Referenced by cacher_open().
Definition at line 129 of file ct_nlmzip_streamprocs.cpp.
References assert, buf, cacher_t::buf, cacher_t::cache_size, CharPtr, count, fci_t::data, cacher_t::eos, ErrPostEx, len, cacher_t::len, Nlm_MemFree(), Nlm_MemNew(), fci_t::proc_buf, SEV_ERROR, cacher_t::size, cacher_t::src, and cacher_t::start.
Referenced by cacher_open().
Definition at line 206 of file ct_nlmzip_streamprocs.cpp.
References assert, buf, cacher_t::buf, cacher_t::cache_size, count, fci_t::data, ErrPostEx, len, cacher_t::len, fci_t::proc_buf, SEV_ERROR, cacher_t::size, cacher_t::src, and cacher_t::start.
Referenced by cacher_open().
|
static |
Definition at line 527 of file ct_nlmzip_streamprocs.cpp.
References fci_t::close, compressor_t::compr_size, fci_t::data, compressor_t::dbuf, compressor_t::decomp_size, compressor_t::mode, Nlm_MemFree(), and compressor_t::src.
Referenced by compressor_open().
|
static |
Definition at line 335 of file ct_nlmzip_streamprocs.cpp.
References assert, buf, compressor_t::compr_size, dbuf, compressor_t::decomp_size, UcharPtr, and val.
Referenced by compressor_read(), and compressor_write().
Definition at line 393 of file ct_nlmzip_streamprocs.cpp.
References assert, compressor_t::bsize, CharPtr, compressor_t::compr_size, compressor_header(), count, fci_t::data, compressor_t::dbuf, compressor_t::decomp_size, ErrPostEx, compressor_t::mode, Nlm_MemFree(), Nlm_MemNew(), NLMZIP_OKAY, Nlmzip_Uncompress(), fci_t::proc_buf, SEV_ERROR, SEV_INFO, compressor_t::src, and util::strcmp().
Referenced by compressor_open().
Definition at line 475 of file ct_nlmzip_streamprocs.cpp.
References compressor_t::bsize, buf, CharPtr, compressor_t::compr_size, compressor_header(), count, fci_t::data, compressor_t::dbuf, compressor_t::decomp_size, ErrPostEx, compressor_t::mode, Nlm_MemFree(), Nlm_MemNew(), Nlmzip_Compress(), NLMZIP_OKAY, fci_t::proc_buf, SEV_ERROR, and compressor_t::src.
Referenced by compressor_open().