/
redgpu
/
ezEngine
Обзор
Документация
Войти
/
redgpu
/
ezEngine
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
Code/Engine/Foundation/Platform/Win/DosDevicePath_Win.h
29 строк
757 B
Jan Krassnigg
Move platform implementations to central folder (#1124)
17 дек 2023, 15:29
Не верифицирован
17 дек 2023, 15:29
9943d89
Код
Авторство
О чём код?
#pragma once #include <Foundation/FoundationInternal.h> EZ_FOUNDATION_INTERNAL_HEADER #include <Foundation/Strings/StringBuilder.h> #include <Foundation/Strings/StringConversion.h> /// \brief Converts an absolute path to a 'DOS device path' /// /// https://docs.microsoft.com/dotnet/standard/io/file-path-formats#dos-device-paths /// /// This is necessary to support very long file paths, ie. more than 260 characters. class ezDosDevicePath { public: ezDosDevicePath(ezStringView sPath) { ezStringBuilder tmp("\\\\?\\", sPath); tmp.ReplaceAll("/", "\\"); m_Data = tmp.GetData(); } const wchar_t* GetData() const { return m_Data.GetData(); } operator const wchar_t*() const { return m_Data.GetData(); } ezStringWChar m_Data; };