|
|
@ -113,10 +113,17 @@ public:
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Gets a pointer to the shared memory block
|
|
|
|
* Gets a pointer to the shared memory block
|
|
|
|
* @param offset Offset from the start of the shared memory block to get pointer
|
|
|
|
* @param offset Offset from the start of the shared memory block to get pointer
|
|
|
|
* @return Pointer to the shared memory block from the specified offset
|
|
|
|
* @return A pointer to the shared memory block from the specified offset
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
u8* GetPointer(std::size_t offset = 0);
|
|
|
|
u8* GetPointer(std::size_t offset = 0);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* Gets a constant pointer to the shared memory block
|
|
|
|
|
|
|
|
* @param offset Offset from the start of the shared memory block to get pointer
|
|
|
|
|
|
|
|
* @return A constant pointer to the shared memory block from the specified offset
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
const u8* GetPointer(std::size_t offset = 0) const;
|
|
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
private:
|
|
|
|
explicit SharedMemory(KernelCore& kernel);
|
|
|
|
explicit SharedMemory(KernelCore& kernel);
|
|
|
|
~SharedMemory() override;
|
|
|
|
~SharedMemory() override;
|
|
|
|