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

Function MakeSerializedBuffer

cpp/src/arrow/ipc/generate_tensor_fuzz_corpus.cc:47–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47Result<std::shared_ptr<Buffer>> MakeSerializedBuffer(
48 std::function<Status(const std::shared_ptr<io::BufferOutputStream>&)> fn) {
49 ARROW_ASSIGN_OR_RAISE(auto sink, io::BufferOutputStream::Create(1024));
50 RETURN_NOT_OK(fn(sink));
51 return sink->Finish();
52}
53
54Result<std::shared_ptr<Buffer>> SerializeTensor(const std::shared_ptr<Tensor>& tensor) {
55 return MakeSerializedBuffer(

Callers 1

SerializeTensorFunction · 0.85

Calls 1

FinishMethod · 0.45

Tested by

no test coverage detected