32 lines
833 B
C++
32 lines
833 B
C++
#pragma once
|
|
#include <stddef.h>
|
|
#include <string>
|
|
|
|
namespace nkg::Misc {
|
|
|
|
//
|
|
// Print memory data in [lpMemBegin, lpMemEnd)
|
|
// If `base` is not nullptr, print address as offset. Otherwise, as absolute address.
|
|
//
|
|
void PrintMemory(const void* lpMemBegin, const void* lpMemEnd, const void* lpBase) noexcept;
|
|
|
|
//
|
|
// Print memory data in [lpMem, lpMem + cbMem)
|
|
// If `base` is not nullptr, print address as offset. Otherwise, as absolute address.
|
|
//
|
|
void PrintMemory(const void* lpMem, size_t cbMem, const void* lpBase) noexcept;
|
|
|
|
[[nodiscard]]
|
|
bool FsIsExist(std::string_view szPath);
|
|
|
|
[[nodiscard]]
|
|
bool FsIsFile(std::string_view szPath);
|
|
|
|
[[nodiscard]]
|
|
bool FsIsDirectory(std::string_view szPath);
|
|
|
|
[[nodiscard]]
|
|
std::string FsCurrentWorkingDirectory();
|
|
}
|
|
|