| 1670 | } |
| 1671 | |
| 1672 | void StartVector(size_t len, size_t elemsize) { |
| 1673 | NotNested(); |
| 1674 | nested = true; |
| 1675 | PreAlign<uoffset_t>(len * elemsize); |
| 1676 | PreAlign(len * elemsize, elemsize); // Just in case elemsize > uoffset_t. |
| 1677 | } |
| 1678 | |
| 1679 | // Call this right before StartVector/CreateVector if you want to force the |
| 1680 | // alignment to be something different than what the element size would |
no test coverage detected