Set the next element to 'val' and advance 'current' to the next element.
| 45 | |
| 46 | /// Set the next element to 'val' and advance 'current' to the next element. |
| 47 | ALWAYS_INLINE void SetNext(T& val) { |
| 48 | DCHECK(IsValid()); |
| 49 | // memcpy() is necessary because 'current' may not be aligned. |
| 50 | memcpy(current, &val, sizeof(T)); |
| 51 | SkipNext(1); |
| 52 | } |
| 53 | |
| 54 | /// Return a pointer to the current element and advance 'current' to the next element. |
| 55 | ALWAYS_INLINE T* Advance() { |
no outgoing calls
no test coverage detected