[cache_restore/dump] hint_width work.

dump/restore cycle works again.
This commit is contained in:
Joe Thornber
2013-09-26 11:36:01 +01:00
parent bd1a189298
commit bb898eeaad
10 changed files with 43 additions and 14 deletions

View File

@@ -19,12 +19,12 @@ namespace caching {
// FIXME: slow copying for now
static void unpack(disk_type const &disk, value_type &value) {
for (unsigned byte = 0; byte < WIDTH; byte++)
value[byte] = disk[byte];
value.at(byte) = disk[byte];
}
static void pack(value_type const &value, disk_type &disk) {
for (unsigned byte = 0; byte < WIDTH; byte++)
disk[byte] = value[byte];
disk[byte] = value.at(byte);
}
};