: m_MinChunkCount(kDefaultMinChunkCount),
50m_Compression(eCompression_none),
53m_DisableSplitSequence(
false),
54m_DisableSplitAnnotations(
false),
56m_JoinSmallChunks(
false),
57m_SplitWholeBioseqs(
true),
58m_SplitNonFeatureSeqTables(kDefaultSplitNonFeatureSeqTables)
76list<vector<char>*>& dst,
80dst.push_back(vec =
newvector<char>);
88dst.push_back(vec =
newvector<char>);
115 size_tpos = dst.size();
117dst.resize(pos + 32 +
size_t(
double(
size)*1.01));
118 size_treal_size = 0;
120&dst[pos+8], dst.size()-(pos+8),
123 "zip compression failed");
125 for(
size_t i= 0, s = real_size;
i< 4; ++
i, s <<= 8 ) {
126dst[pos+
i] = char(s >> 24);
128 for(
size_t i= 0, s =
size;
i< 4; ++
i, s <<= 8 ) {
129dst[pos+4+
i] = char(s >> 24);
131dst.resize(pos+8+real_size);
136 "compression method is not implemented");
153 "compression method is not implemented");
168 size_tpos = dst.size();
169dst.resize(pos +
size);
static const size_t kChunkSize
#define DISABLE_SPLIT_ASSEMBLY
#define DISABLE_SPLIT_DESCRIPTIONS
static void CompressFooter(const SSplitterParams ¶ms, vector< char > &dst, size_t size)
static void CompressHeader(const SSplitterParams ¶ms, vector< char > &dst, size_t size)
static void sx_Append(vector< char > &dst, const char *data, size_t size)
static void CompressChunk(const SSplitterParams ¶ms, vector< char > &dst, const char *data, size_t size)
static void Compress(const SSplitterParams ¶ms, list< vector< char > * > &dst, const char *data, size_t size)
static const int chunk_size
virtual bool CompressBuffer(const void *src_buf, size_t src_len, void *dst_buf, size_t dst_size, size_t *dst_len)
Compress data in the buffer.
#define NCBI_THROW(exception_class, err_code, message)
Generic macro to throw an exception, given the exception class, error code and message string.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define END_SCOPE(ns)
End the previously defined scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define BEGIN_SCOPE(ns)
Define a new scope.
const struct ncbi::grid::netcache::search::fields::SIZE size
void SetChunkSize(size_t size)
ECompression m_Compression
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4