Utility class for inflating a compressed buffer.
More...
#include <XrdClZipCache.hh>
Utility class for inflating a compressed buffer.
Definition at line 54 of file XrdClZipCache.hh.
◆ buffer_t
◆ ZipCache()
XrdCl::ZipCache::ZipCache |
( |
| ) |
|
|
inline |
Definition at line 77 of file XrdClZipCache.hh.
77 : inabsoff( 0 )
78 {
79 strm.zalloc = Z_NULL;
80 strm.zfree = Z_NULL;
81 strm.opaque = Z_NULL;
82 strm.avail_in = 0;
83 strm.next_in = Z_NULL;
84 strm.avail_out = 0;
85 strm.next_out = Z_NULL;
86
87
88
89 int rc = inflateInit2( &strm, -MAX_WBITS );
91 if( !st.
IsOK() )
throw ZipError( st );
92 }
bool IsOK() const
We're fine.
References XrdCl::Status::IsOK().
◆ ~ZipCache()
XrdCl::ZipCache::~ZipCache |
( |
| ) |
|
|
inline |
◆ QueueReq()
void XrdCl::ZipCache::QueueReq |
( |
uint64_t |
offset, |
|
|
uint32_t |
length, |
|
|
void * |
buffer, |
|
|
ResponseHandler * |
handler |
|
) |
| |
|
inline |
Definition at line 99 of file XrdClZipCache.hh.
100 {
101 std::unique_lock<std::mutex> lck( mtx );
102 rdreqs.emplace( offset, length, buffer, handler );
103 Decompress();
104 }
◆ QueueRsp()
Definition at line 106 of file XrdClZipCache.hh.
107 {
108 std::unique_lock<std::mutex> lck( mtx );
109 rdrsps.emplace( st, offset, std::move( buffer ) );
110 Decompress();
111 }
The documentation for this class was generated from the following file: