14#include <fairlogger/Logger.h>
23 memset(mDataWords.data(), 0,
sizeof(
uint32_t) * mDataWords.size());
30 auto address =
reinterpret_cast<char*
>(&word);
32 while (nbyte < payloadsize) {
34 nbyte +=
sizeof(word);
35 if ((word & 0xFFFFFF) == 0x1d3082) {
36 LOG(
error) <<
"Found stop word" << std::endl;
42 mDataWords[mNDataWords++] = word;
50 for (
unsigned int iword = 0; iword < static_cast<uint32_t>(rawmemory.size() /
sizeof(
uint32_t)); iword++) {
59 mDataWords[mNDataWords++] =
address[iword];
char error[CURL_ERROR_SIZE]
void readFromMemoryBuffer(const gsl::span< const char > rawmemory)
Read page from raw memory buffer.
void readFromStream(std::istream &in, uint32_t payloadsize)
Read page from stream.
void flush()
Flush the buffer Does not overwrite the word buffer but just resets the counter and iterator.
GLuint GLuint64EXT address
LOG(info)<< "Compressed in "<< sw.CpuTime()<< " s"