aboutsummaryrefslogblamecommitdiffstats
path: root/library/cpp/yt/string/guid.cpp
blob: b18ac3e128285393e38458db66287f9cefa5ade9 (plain) (tree)
1
2
3
4
5
6
7
8
9
                 
                   


                                                                                
                                                                               
 
                                                          


                                                


                                                                                
#include "guid.h"

#include "format.h"

namespace NYT {

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

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

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

} // namespace NYT