aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/codecs/static/example/example.h
blob: f9b3a7324b72d68593c58a1c356bd5b91f4715e1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#pragma once

#include <util/generic/strbuf.h>
#include <util/generic/buffer.h>

namespace NStaticCodecExample {
    enum EDictVersion : ui8 {
        DV_NULL = 0,
        DV_HUFF_20160707,
        DV_SA_HUFF_20160707,
        DV_COUNT
    };

    void Encode(TBuffer&, TStringBuf, EDictVersion dv = DV_SA_HUFF_20160707);

    void Decode(TBuffer&, TStringBuf);
}