@brief Get the serialized buffer (after you call `Finish()`) as a span. @return Returns a constructed flatbuffers::span that is a view over the FlatBuffer data inside the buffer.
| 1256 | /// @return Returns a constructed flatbuffers::span that is a view over the |
| 1257 | /// FlatBuffer data inside the buffer. |
| 1258 | flatbuffers::span<uint8_t> GetBufferSpan() const { |
| 1259 | Finished(); |
| 1260 | return flatbuffers::span<uint8_t>(buf_.data(), buf_.size()); |
| 1261 | } |
| 1262 | |
| 1263 | /// @brief Get a pointer to an unfinished buffer. |
| 1264 | /// @return Returns a `uint8_t` pointer to the unfinished buffer. |