skyline/app/src/main/cpp/skyline/kernel/types/KMemory.h
TheASVigilante dac180d7c1 Restructure the memory manager
Changes and improves the accuracy of various features of the memory manager. Reduces stuttering in certain games.
2023-05-05 18:16:16 +02:00

25 lines
659 B
C++

// SPDX-License-Identifier: MPL-2.0
// Copyright © 2020 Skyline Team and Contributors (https://github.com/skyline-emu/)
#pragma once
#include <kernel/memory.h>
#include "KObject.h"
namespace skyline::kernel::type {
/**
* @brief The base kernel memory object that other memory classes derieve from
*/
class KMemory : public KObject {
public:
KMemory(const DeviceState &state, KType objectType, span <u8> guest) : KObject(state, objectType), guest(guest) {}
/**
* @return A span representing the memory object on the guest
*/
span<u8> guest;
virtual ~KMemory() = default;
};
}