diff options
author | qrort <qrort@yandex-team.com> | 2022-11-30 23:47:12 +0300 |
---|---|---|
committer | qrort <qrort@yandex-team.com> | 2022-11-30 23:47:12 +0300 |
commit | 22f8ae0e3f5d68b92aecccdf96c1d841a0334311 (patch) | |
tree | bffa27765faf54126ad44bcafa89fadecb7a73d7 /library/cpp/xdelta3/state/merge.h | |
parent | 332b99e2173f0425444abb759eebcb2fafaa9209 (diff) | |
download | ydb-22f8ae0e3f5d68b92aecccdf96c1d841a0334311.tar.gz |
validate canons without yatest_common
Diffstat (limited to 'library/cpp/xdelta3/state/merge.h')
-rw-r--r-- | library/cpp/xdelta3/state/merge.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/library/cpp/xdelta3/state/merge.h b/library/cpp/xdelta3/state/merge.h new file mode 100644 index 0000000000..a93106c7d9 --- /dev/null +++ b/library/cpp/xdelta3/state/merge.h @@ -0,0 +1,32 @@ +#pragma once + +#include <library/cpp/xdelta3/xdelta_codec/codec.h> + +#include <util/system/types.h> + +#include <string.h> + +#ifdef __cplusplus +namespace NXdeltaAggregateColumn { +extern "C" { +#endif + +// total Data size = Offset + Size +struct TSpan { + const ui8* Data; + size_t Offset; + size_t Size; +}; + +int MergeStates( + XDeltaContext* context, + const ui8* lhsSata, + size_t lhsSize, + const ui8* rhsData, + size_t rhsSize, + struct TSpan* result); + +#ifdef __cplusplus +} +} +#endif |