TODO(wvo): allow this to specify an aligment greater than the natural alignment.
| 1089 | // TODO(wvo): allow this to specify an aligment greater than the natural |
| 1090 | // alignment. |
| 1091 | size_t EndVector(size_t start, bool typed, bool fixed) { |
| 1092 | auto vec = CreateVector(start, stack_.size() - start, 1, typed, fixed); |
| 1093 | // Remove temp elements and return vector. |
| 1094 | stack_.resize(start); |
| 1095 | stack_.push_back(vec); |
| 1096 | return static_cast<size_t>(vec.u_); |
| 1097 | } |
| 1098 | |
| 1099 | size_t EndMap(size_t start) { |
| 1100 | // We should have interleaved keys and values on the stack. |
no test coverage detected