| 917 | } |
| 918 | |
| 919 | void StartVector(size_t len, size_t elemsize) { |
| 920 | NotNested(); |
| 921 | nested = true; |
| 922 | PreAlign<uoffset_t>(len * elemsize); |
| 923 | PreAlign(len * elemsize, elemsize); // Just in case elemsize > uoffset_t. |
| 924 | } |
| 925 | |
| 926 | // Call this right before StartVector/CreateVector if you want to force the |
| 927 | // alignment to be something different than what the element size would |
no test coverage detected