Scroom 0.14-48-ga0fee447
Loading...
Searching...
No Matches
blob-compression.cc File Reference
#include "blob-compression.hh"
#include <cstdio>
#include <cstdlib>
#include <fmt/format.h>
#include <zlib.h>
#include <scroom/assertions.hh>
#include <scroom/memoryblobs.hh>
Include dependency graph for blob-compression.cc:

Namespaces

namespace  Scroom
 
namespace  Scroom::MemoryBlobs
 
namespace  Scroom::MemoryBlobs::Detail
 

Macros

#define zlib_verify(condition, function_name, r, stream)
 

Functions

PageList Scroom::MemoryBlobs::Detail::compressBlob (const uint8_t *in, size_t size, const PageProvider::Ptr &provider)
 
void Scroom::MemoryBlobs::Detail::decompressBlob (uint8_t *out, size_t size, PageList list, const PageProvider::Ptr &provider)
 

Macro Definition Documentation

◆ zlib_verify

#define zlib_verify (   condition,
  function_name,
  r,
  stream 
)
Value:
((condition) ? ((void)0) \
: Scroom::Utils::Detail::assertionFailed( \
"assertion", \
fmt::format("{} said: {} ({})", (function_name), (r), ((stream).msg ? (stream).msg : "")), \
static_cast<const char*>(__PRETTY_FUNCTION__), \
__FILE__, \
__LINE__ \
))
Definition color.hh:26
Definition blockallocator.hh:18
Scroom::Utils::Rectangle< double > const r
Definition transformpresentation_test.cc:65
22 "assertion", \
23 fmt::format("{} said: {} ({})", (function_name), (r), ((stream).msg ? (stream).msg : "")), \
24 static_cast<const char*>(__PRETTY_FUNCTION__), \
25 __FILE__, \
26 __LINE__ \
27 ))
void assertionFailed(std::string_view type, std::string_view expr, std::string_view function, std::string_view filename, unsigned int line) __attribute__((noreturn))
Definition assertions.cc:51