diff options
Diffstat (limited to '')
-rw-r--r-- | src/cache.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/cache.cpp b/src/cache.cpp index 61d0d28..b8e94ec 100644 --- a/src/cache.cpp +++ b/src/cache.cpp | |||
@@ -1,6 +1,6 @@ | |||
1 | #include "cache.h" | 1 | #include "cache.h" |
2 | #include "serializer.h" | 2 | #include "bu/fstring.h" |
3 | #include "staticstring.h" | 3 | #include "bu/archive.h" |
4 | 4 | ||
5 | Cache::Cache() | 5 | Cache::Cache() |
6 | { | 6 | { |
@@ -15,14 +15,14 @@ Cache::~Cache() | |||
15 | } | 15 | } |
16 | } | 16 | } |
17 | 17 | ||
18 | void Cache::serialize( class Serializer &ar ) | 18 | void Cache::archive( class Bu::Archive &ar ) |
19 | { | 19 | { |
20 | if( ar.isLoading() ) | 20 | if( ar.isLoading() ) |
21 | { | 21 | { |
22 | uint32_t sCache, sData, sIndex; | 22 | uint32_t sCache, sData, sIndex; |
23 | 23 | ||
24 | ar >> sIndex; | 24 | ar >> sIndex; |
25 | StaticString *Index = new StaticString[sIndex]; | 25 | Bu::FString *Index = new Bu::FString[sIndex]; |
26 | for( uint32_t i = 0; i < sIndex; i++ ) | 26 | for( uint32_t i = 0; i < sIndex; i++ ) |
27 | { | 27 | { |
28 | ar >> Index[i]; | 28 | ar >> Index[i]; |
@@ -39,10 +39,10 @@ void Cache::serialize( class Serializer &ar ) | |||
39 | for( uint32_t j = 0; j < sData; j++ ) | 39 | for( uint32_t j = 0; j < sData; j++ ) |
40 | { | 40 | { |
41 | ar >> nTmp; | 41 | ar >> nTmp; |
42 | lData.push_back( Index[nTmp].getString() ); | 42 | lData.push_back( Index[nTmp].getStr() ); |
43 | } | 43 | } |
44 | ar >> nTmp; | 44 | ar >> nTmp; |
45 | mCache[Index[nTmp].getString()] = e; | 45 | mCache[Index[nTmp].getStr()] = e; |
46 | } | 46 | } |
47 | /* | 47 | /* |
48 | uint32_t sCache, sData; | 48 | uint32_t sCache, sData; |