18 std::vector<unsigned char>
out(
isize);
19 uLongf destLen = compressBound(
isize);
36 blob.push_back((
unsigned char)
c);
42 os.write((
const char*)(
r.first),
r.second -
r.first);
50 return Range(
nullptr,
nullptr);
52 unsigned long long b = (*pos).second;
53 unsigned long long e =
isize;
63 return r.second -
r.first;
73 std::vector<unsigned char>
out(
isize);
74 uLongf destLen =
out.size();
75 int zerr = uncompress(&
out.front(), &destLen, &
blob.front(),
blob.size());
76 if (
zerr != 0 ||
out.size() != destLen)
77 edm::LogError(
"FileBlob") <<
"uncompressing error " <<
zerr <<
" original size was " <<
isize <<
" new size is "
std::pair< unsigned char const *, unsigned char const * > Range
std::vector< unsigned char > blob
void finalized(bool compress)
void read(const std::string &name, std::istream &is)
read from real file give it name name
Log< level::Error, false > LogError
Range rawBlob(const std::string &name) const
void write(const std::string &name, std::ostream &os) const
write to ostream
unsigned long long size(const std::string &name) const