aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/xdelta3/state/merge.h
blob: a93106c7d9a04a582c69a763c9f86f12e9f1759e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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