| 1750 | } |
| 1751 | |
| 1752 | void StartVector(size_t len, size_t elemsize) { |
| 1753 | NotNested(); |
| 1754 | nested = true; |
| 1755 | PreAlign<uoffset_t>(len * elemsize); |
| 1756 | PreAlign(len * elemsize, elemsize); // Just in case elemsize > uoffset_t. |
| 1757 | } |
| 1758 | |
| 1759 | // Call this right before StartVector/CreateVector if you want to force the |
| 1760 | // alignment to be something different than what the element size would |
no test coverage detected