aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/yt/string/guid.cpp
blob: 6c133a97789e2c69af2dd185f5cb4816fdaadbfa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include "guid.h"

namespace NYT {

////////////////////////////////////////////////////////////////////////////////

void FormatValue(TStringBuilderBase* builder, TGuid value, TStringBuf /*format*/)
{
    char* begin = builder->Preallocate(MaxGuidStringSize);
    char* end = WriteGuidToBuffer(begin, value);
    builder->Advance(end - begin);
}

TString ToString(TGuid guid)
{
    return ToStringViaBuilder(guid);
}

////////////////////////////////////////////////////////////////////////////////

} // namespace NYT