| 73 | return p; |
| 74 | } |
| 75 | StringRef pop_front(int bytes) { |
| 76 | ASSERT(bytes <= str.size()); |
| 77 | StringRef result = str.substr(0, bytes); |
| 78 | str.contents() = str.substr(bytes); |
| 79 | return result; |
| 80 | } |
| 81 | void alignReserve(int alignment, int size) { |
| 82 | ASSERT(alignment && (alignment & (alignment - 1)) == 0); // alignment is a power of two |
| 83 |
no test coverage detected