aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/codecs/static/example/example.h
blob: 41003fb187d65f3cc6f4424ce7e4c41b2499fa3c (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);
}