FFL
Loading...
Searching...
No Matches
FFLiResourceCache.h
Go to the documentation of this file.
1#ifndef FFLI_RESOURCE_CACHE_H_
2#define FFLI_RESOURCE_CACHE_H_
3
4#include <nn/ffl/FFLResourceType.h>
5#include <nn/ffl/FFLResult.h>
6
8
10{
11public:
14
15 FFLResult Attach(const void* pData, u32 size, FFLResourceType resourceType);
16 bool IsAttached() const;
17
18 bool IsValid(FFLResourceType resourceType) const;
19
20 FFLiResourceHeader* Header(FFLResourceType resourceType) const;
21
22private:
23 struct
24 {
28};
30
31#endif // FFLI_RESOURCE_CACHE_H_
@ FFL_RESOURCE_TYPE_MAX
Definition FFLResourceType.h:14
NN_STATIC_ASSERT(sizeof(FFLiAllocator)==4)
Definition FFLiResourceCache.h:10
bool IsValid(FFLResourceType resourceType) const
Definition FFLiResourceCache.cpp:39
FFLResult Attach(const void *pData, u32 size, FFLResourceType resourceType)
Definition FFLiResourceCache.cpp:16
~FFLiResourceCache()
Definition FFLiResourceCache.cpp:12
FFLiResourceCache()
Definition FFLiResourceCache.cpp:7
FFLiResourceHeader * pHeader
Definition FFLiResourceCache.h:25
u32 size
Definition FFLiResourceCache.h:26
FFLiResourceHeader * Header(FFLResourceType resourceType) const
Definition FFLiResourceCache.cpp:44
bool IsAttached() const
Definition FFLiResourceCache.cpp:30
Definition FFLiResourceHeader.h:31