openMSX
|
#include <DeltaBlock.hh>
Public Member Functions | |
DeltaBlockCopy (const uint8_t *data, size_t size) | |
void | apply (uint8_t *dst, size_t size) const override |
void | compress (size_t size) |
const uint8_t * | getData () |
![]() | |
virtual | ~DeltaBlock ()=default |
Additional Inherited Members | |
![]() | |
DeltaBlock ()=default | |
Definition at line 42 of file DeltaBlock.hh.
openmsx::DeltaBlockCopy::DeltaBlockCopy | ( | const uint8_t * | data, |
size_t | size | ||
) |
Definition at line 253 of file DeltaBlock.cc.
References openmsx::SHA1::calc(), openmsx::MemBuffer< T, ALIGNMENT >::data(), and utf8::unchecked::size().
|
overridevirtual |
Implements openmsx::DeltaBlock.
Definition at line 270 of file DeltaBlock.cc.
References openmsx::SHA1::calc(), openmsx::MemBuffer< T, ALIGNMENT >::data(), LZ4::decompress(), and utf8::unchecked::size().
Referenced by compress().
void openmsx::DeltaBlockCopy::compress | ( | size_t | size | ) |
Definition at line 282 of file DeltaBlock.cc.
References apply(), LZ4::compress(), LZ4::compressBound(), openmsx::MemBuffer< T, ALIGNMENT >::data(), openmsx::MemBuffer< T, ALIGNMENT >::resize(), utf8::unchecked::size(), and openmsx::MemBuffer< T, ALIGNMENT >::swap().
const uint8_t * openmsx::DeltaBlockCopy::getData | ( | ) |
Definition at line 312 of file DeltaBlock.cc.
References openmsx::MemBuffer< T, ALIGNMENT >::data().