aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/json/flex_buffers/cvt.h
blob: 489f2dad83b0eb4a10e1954c8c201e41fb5aecf7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#pragma once 
 
#include <util/generic/vector.h> 
#include <util/generic/strbuf.h> 
#include <util/generic/string.h> 
 
namespace NJson { 
    using TFlexBuffersData = TVector<ui8>; 
 
    TString FlexToString(const TFlexBuffersData& v); 
    void ConvertJsonToFlexBuffers(TStringBuf input, TFlexBuffersData& result); 
 
    inline TFlexBuffersData ConvertJsonToFlexBuffers(TStringBuf input) { 
        TFlexBuffersData result; 
 
        ConvertJsonToFlexBuffers(input, result); 
 
        return result; 
    } 
}