openMSX
|
#include <DeltaBlock.hh>
Public Member Functions | |
DeltaBlockCopy (std::span< const uint8_t > data) | |
void | apply (std::span< uint8_t > dst) const override |
void | compress (size_t size) |
const uint8_t * | getData () |
Public Member Functions inherited from openmsx::DeltaBlock | |
virtual | ~DeltaBlock ()=default |
Additional Inherited Members | |
Protected Member Functions inherited from openmsx::DeltaBlock | |
DeltaBlock ()=default | |
Definition at line 44 of file DeltaBlock.hh.
|
explicit |
Definition at line 256 of file DeltaBlock.cc.
References openmsx::SHA1::calc(), and ranges::copy().
|
overridevirtual |
Implements openmsx::DeltaBlock.
Definition at line 272 of file DeltaBlock.cc.
References openmsx::SHA1::calc(), ranges::copy(), openmsx::MemBuffer< T, ALIGNMENT >::data(), and LZ4::decompress().
Referenced by compress().
void openmsx::DeltaBlockCopy::compress | ( | size_t | size | ) |
Definition at line 284 of file DeltaBlock.cc.
References apply(), LZ4::compress(), LZ4::compressBound(), openmsx::MemBuffer< T, ALIGNMENT >::data(), ranges::equal(), and openmsx::MemBuffer< T, ALIGNMENT >::resize().
const uint8_t * openmsx::DeltaBlockCopy::getData | ( | ) |
Definition at line 314 of file DeltaBlock.cc.
References openmsx::MemBuffer< T, ALIGNMENT >::data().