Returns a 'boundary' aligned pointer by rounding up to the nearest multiple of 'boundary'.
| 128 | // Returns a 'boundary' aligned pointer by rounding up to |
| 129 | // the nearest multiple of 'boundary'. |
| 130 | static inline const char* align(const char* address, size_t boundary) |
| 131 | { |
| 132 | if ((size_t)address % boundary == 0) { |
| 133 | return address; |
| 134 | } |
| 135 | return (address + boundary) - ((size_t)address % boundary); |
| 136 | } |
| 137 | |
| 138 | |
| 139 | Try<vector<Entry>> parse(const string& path) |