mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-07 23:41:18 +12:00
coreinit: Implement several FSA functions and fix some bugs (#844)
This commit is contained in:
parent
ae4cb45cf3
commit
f1ebfa9941
10 changed files with 1032 additions and 121 deletions
|
@ -49,6 +49,13 @@ public:
|
|||
m_tempData.insert(m_tempData.end(), count - l.size(), T());
|
||||
}
|
||||
|
||||
template <size_t N>
|
||||
SysAllocator(const char(&str)[N])
|
||||
{
|
||||
m_tempData.reserve(count);
|
||||
m_tempData.insert(m_tempData.begin(), str, str + N);
|
||||
}
|
||||
|
||||
constexpr uint32 GetCount() const
|
||||
{
|
||||
return count;
|
||||
|
@ -135,6 +142,9 @@ private:
|
|||
std::vector<T> m_tempData;
|
||||
};
|
||||
|
||||
template <size_t N>
|
||||
SysAllocator(const char(&str)[N]) -> SysAllocator<char, N>;
|
||||
|
||||
template<typename T>
|
||||
class SysAllocator<T, 1> : public SysAllocatorBase
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue