80 CWStream flatten_stream(&md5_buffer);
86 compress_stream.flush();
90 vector<unsigned char> md5_digest(md5_buffer.
GetMD5Sum() );
92 blob_md5_digest.resize(md5_digest.size());
93 memcpy(&blob_md5_digest[0], &md5_digest[0], md5_digest.size());
102 istrstream istr(&raw_data[0], raw_data.size() );
115 istrstream istr(&raw_data[0], raw_data.size() );
121 raw_bytes.reserve(raw_data.size() * 4);
122 unsigned char buf[1024];
124 decomp_str.read((
char*)
buf,
sizeof(
buf));
125 size_t size = decomp_str.gcount();
129 raw_bytes.insert(raw_bytes.end(),
User-defined methods of the data storage class.
void UnPack(CSeq_entry &entry) const
void Pack(const CSeq_entry &entry)
Stream hook that calculates the MD5 digest of the data passed to a CBufferWriter.
virtual ERW_Result Flush()
Flush pending data (if any) down to the output device.
std::vector< unsigned char > GetMD5Sum() const
CObjectIStreamAsnBinary –.
CObjectOStreamAsnBinary –.
Writer-based output stream.
CZipStreamCompressor – zlib based compression stream processor.
CZipStreamDecompressor – zlib based decompression stream processor.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
TBlob & SetBlob(void)
Assign a value to Blob data member.
TMagic & SetMagic(void)
Assign a value to Magic data member.
TMd5_digest & SetMd5_digest(void)
Assign a value to Md5_digest data member.
const TBlob & GetBlob(void) const
Get the Blob member data.
const struct ncbi::grid::netcache::search::fields::SIZE size
Reader-writer based streams.