TODO(wvo): allow this to specify an aligment greater than the natural alignment.
| 1099 | // TODO(wvo): allow this to specify an aligment greater than the natural |
| 1100 | // alignment. |
| 1101 | size_t EndVector(size_t start, bool typed, bool fixed) { |
| 1102 | auto vec = CreateVector(start, stack_.size() - start, 1, typed, fixed); |
| 1103 | // Remove temp elements and return vector. |
| 1104 | stack_.resize(start); |
| 1105 | stack_.push_back(vec); |
| 1106 | return static_cast<size_t>(vec.u_); |
| 1107 | } |
| 1108 | |
| 1109 | size_t EndMap(size_t start) { |
| 1110 | // We should have interleaved keys and values on the stack. |
no test coverage detected