MCPcopy Create free account
hub / github.com/apache/arrow / WriteFlatbufferBuilder

Function WriteFlatbufferBuilder

cpp/src/arrow/ipc/metadata_internal.h:232–242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

230 const std::vector<int64_t>& variadic_counts, const IpcWriteOptions& options);
231
232static inline Result<std::shared_ptr<Buffer>> WriteFlatbufferBuilder(
233 flatbuffers::FlatBufferBuilder& fbb, // NOLINT non-const reference
234 MemoryPool* pool = default_memory_pool()) {
235 int32_t size = fbb.GetSize();
236
237 ARROW_ASSIGN_OR_RAISE(auto result, AllocateBuffer(size, pool));
238
239 uint8_t* dst = result->mutable_data();
240 memcpy(dst, fbb.GetBufferPointer(), size);
241 return result;
242}
243
244ARROW_EXPORT
245flatbuf::TimeUnit ToFlatbufferUnit(TimeUnit::type unit);

Callers 2

WriteFBMessageFunction · 0.85
TEST_PFunction · 0.85

Calls 3

default_memory_poolFunction · 0.85
GetSizeMethod · 0.45
mutable_dataMethod · 0.45

Tested by 1

TEST_PFunction · 0.68