Files
botw/lib/sead/include/prim/seadMemUtil.h
T
Léo Lam 18c60323a9 Switch to subrepos
git subrepo clone https://github.com/open-ead/sead lib/sead

subrepo:
  subdir:   "lib/sead"
  merged:   "1b66e825d"
upstream:
  origin:   "https://github.com/open-ead/sead"
  branch:   "master"
  commit:   "1b66e825d"
git-subrepo:
  version:  "0.4.3"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "2f68596"

git subrepo clone (merge) https://github.com/open-ead/nnheaders lib/NintendoSDK

subrepo:
  subdir:   "lib/NintendoSDK"
  merged:   "9ee21399f"
upstream:
  origin:   "https://github.com/open-ead/nnheaders"
  branch:   "master"
  commit:   "9ee21399f"
git-subrepo:
  version:  "0.4.3"
  origin:   "ssh://git@github.com/ingydotnet/git-subrepo"
  commit:   "2f68596"

git subrepo clone https://github.com/open-ead/agl lib/agl

subrepo:
  subdir:   "lib/agl"
  merged:   "7c063271b"
upstream:
  origin:   "https://github.com/open-ead/agl"
  branch:   "master"
  commit:   "7c063271b"
git-subrepo:
  version:  "0.4.3"
  origin:   "ssh://git@github.com/ingydotnet/git-subrepo"
  commit:   "2f68596"

git subrepo clone https://github.com/open-ead/EventFlow lib/EventFlow

subrepo:
  subdir:   "lib/EventFlow"
  merged:   "c35d21b34"
upstream:
  origin:   "https://github.com/open-ead/EventFlow"
  branch:   "master"
  commit:   "c35d21b34"
git-subrepo:
  version:  "0.4.3"
  origin:   "ssh://git@github.com/ingydotnet/git-subrepo"
  commit:   "2f68596"
2022-03-21 21:31:42 +01:00

39 lines
1.1 KiB
C++

#ifndef SEAD_MEM_UTIL_H_
#define SEAD_MEM_UTIL_H_
#include <basis/seadTypes.h>
namespace sead
{
class MemUtil
{
public:
static void* fill(void* ptr, u8 c, size_t size);
static void* fillZero(void* ptr, size_t size);
static void* copyOverlap(void* dest, const void* src, size_t size);
static void* copy(void* dest, const void* src, size_t size);
static void* copyAlign32(void* dest, const void* src, size_t size);
static int compare(const void* ptr1, const void* ptr2, size_t size);
static bool isStack(const void* addr);
static bool isHeap(const void* addr);
/// Checks whether a region of memory is filled with 0.
static bool checkFillType(const void* ptr, size_t size);
static void dumpMemoryBinary(const void* ptr, u32 size_front, u32 size_back, bool is_align);
};
} // namespace sead
#define SEAD_PRIM_MEM_UTIL_H_
#ifdef cafe
#include <prim/cafe/seadMemUtilCafe.hpp>
#elif NNSDK
#include <prim/nin/seadMemUtilNin.hpp>
#else
#error "Unknown platform"
#endif // cafe
#undef SEAD_PRIM_MEM_UTIL_H_
#endif // SEAD_MEM_UTIL_H_