| 22 | namespace config_resource_internal |
| 23 | { |
| 24 | void *load(File &file, Allocator &a) |
| 25 | { |
| 26 | const u32 size = file.size(); |
| 27 | char *res = (char *)a.allocate(size + 1); |
| 28 | file.read(res, size); |
| 29 | res[size] = '\0'; |
| 30 | return res; |
| 31 | } |
| 32 | |
| 33 | void unload(Allocator &a, void *resource) |
| 34 | { |