MCPcopy Create free account
hub / github.com/bytedance/Fastbot_Android / GetBufferSpan

Function GetBufferSpan

native/thirdpart/flatbuffers/flatbuffers.h:1258–1261  ·  view source on GitHub ↗

@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.

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls 3

FinishedFunction · 0.85
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected