| 236 | // Writer |
| 237 | |
| 238 | u8* alloc(int bytes) { |
| 239 | if (_dst_len + bytes > _dst_capacity) { |
| 240 | grow(_dst_len + bytes + 2000); |
| 241 | } |
| 242 | u8* result = _dst + _dst_len; |
| 243 | _dst_len += bytes; |
| 244 | return result; |
| 245 | } |
| 246 | |
| 247 | void grow(int new_capacity) { |
| 248 | u8* new_dst = NULL; |
nothing calls this directly
no outgoing calls
no test coverage detected