2022-12-07 13:48:24 +00:00
|
|
|
#pragma once
|
|
|
|
#include <luna/Types.h>
|
|
|
|
|
|
|
|
struct Stack
|
|
|
|
{
|
2022-12-18 17:43:17 +00:00
|
|
|
Stack() = default;
|
2022-12-07 13:48:24 +00:00
|
|
|
Stack(u64 base, usize bytes);
|
|
|
|
|
2023-01-10 18:31:41 +00:00
|
|
|
u64 bottom() const
|
2022-12-07 13:48:24 +00:00
|
|
|
{
|
|
|
|
return m_base;
|
|
|
|
}
|
|
|
|
|
2023-01-10 18:31:41 +00:00
|
|
|
u64 top() const;
|
2022-12-07 13:48:24 +00:00
|
|
|
|
2023-01-10 18:31:41 +00:00
|
|
|
usize bytes() const
|
2022-12-07 13:48:24 +00:00
|
|
|
{
|
|
|
|
return m_bytes;
|
|
|
|
}
|
|
|
|
|
|
|
|
private:
|
2023-07-12 14:06:56 +00:00
|
|
|
u64 m_base { 0 };
|
|
|
|
usize m_bytes { 0 };
|
2023-01-02 12:07:29 +00:00
|
|
|
};
|