File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 17
17
#include < fmt/format.h>
18
18
19
19
#include " Text/Hex.h"
20
+ #include " Utils/BufferView.h"
20
21
#include " Utils/Result.h"
21
22
#include " Utils/TypeTraits.h"
22
23
@@ -54,13 +55,13 @@ void ToString(const GUID& guid, OutputIt out)
54
55
}
55
56
56
57
const auto data4leftLength = 2 ;
57
- std::string_view data4Left (reinterpret_cast <const char *>(&guid.Data4 [0 ]), data4leftLength);
58
+ BufferView data4Left (reinterpret_cast <const uint8_t *>(&guid.Data4 [0 ]), data4leftLength);
58
59
ToHex (std::cbegin (data4Left), std::cend (data4Left), out);
59
60
60
61
*out++ = ' -' ;
61
62
62
- std::string_view data4right (
63
- reinterpret_cast <const char *>(&guid.Data4 [data4leftLength]), sizeof (guid.Data4 ) - data4leftLength);
63
+ BufferView data4right (
64
+ reinterpret_cast <const uint8_t *>(&guid.Data4 [data4leftLength]), sizeof (guid.Data4 ) - data4leftLength);
64
65
ToHex (std::cbegin (data4right), std::cend (data4right), out);
65
66
66
67
*out++ = ' }' ;
You can’t perform that action at this time.
0 commit comments