mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-26 06:42:40 +00:00
Merge branch 'master' of https://github.com/google/flatbuffers
This commit is contained in:
@@ -1051,8 +1051,11 @@ FLATBUFFERS_FINAL_CLASS
|
|||||||
uint8_t **buf) {
|
uint8_t **buf) {
|
||||||
NotNested();
|
NotNested();
|
||||||
StartVector(len, elemsize);
|
StartVector(len, elemsize);
|
||||||
*buf = buf_.make_space(len * elemsize);
|
buf_.make_space(len * elemsize);
|
||||||
return EndVector(len);
|
auto vec_start = GetSize();
|
||||||
|
auto vec_end = EndVector(len);
|
||||||
|
*buf = buf_.data_at(vec_start);
|
||||||
|
return vec_end;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// @brief Specialized version of `CreateVector` for non-copying use cases.
|
/// @brief Specialized version of `CreateVector` for non-copying use cases.
|
||||||
|
|||||||
Reference in New Issue
Block a user