Skip to content

Commit

Permalink
Tweak to library
Browse files Browse the repository at this point in the history
  • Loading branch information
Ebenezer-group committed Feb 22, 2024
1 parent f8473e7 commit 80b4b0f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/cmwBuffer.hh
Original file line number Diff line number Diff line change
Expand Up @@ -494,8 +494,8 @@ constexpr auto qlzFormula (int i){return i+(i>>3)+400;}

template<class R,class Z,int sz>class BufferCompressed:public SendBuffer<Z>,public ReceiveBuffer<R,Z>{
public:
::qlz_state_compress comp;
::qlz_state_decompress decomp;
::qlz_state_compress comp{};
::qlz_state_decompress decomp{};
char* compressedStart;
unsigned char sendBuf[sz];
char compBuf[qlzFormula(sz)];
Expand All @@ -514,7 +514,7 @@ template<class R,class Z,int sz>class BufferCompressed:public SendBuffer<Z>,publ

public:
explicit BufferCompressed ():SendBuffer<Z>(sendBuf,sz)
,ReceiveBuffer<R,Z>(recBuf),comp{},decomp{}{}
,ReceiveBuffer<R,Z>(recBuf){}

void compress (){
if(qlzFormula(this->index)>(qlzFormula(sz)-compIndex))
Expand Down

0 comments on commit 80b4b0f

Please sign in to comment.