fill() is most frequently called with small byte counts (<= 4), which is why we're using loops rather than calling memset.
| 1046 | // fill() is most frequently called with small byte counts (<= 4), |
| 1047 | // which is why we're using loops rather than calling memset. |
| 1048 | void fill(size_t zero_pad_bytes) { |
| 1049 | make_space(zero_pad_bytes); |
| 1050 | for (size_t i = 0; i < zero_pad_bytes; i++) cur_[i] = 0; |
| 1051 | } |
| 1052 | |
| 1053 | // Version for when we know the size is larger. |
| 1054 | // Precondition: zero_pad_bytes > 0 |
no test coverage detected