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

Function Wrap

cpp/src/arrow/buffer.h:188–191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

186 /// \return a new shared_ptr<Buffer>
187 template <typename T, typename SizeType = int64_t>
188 static std::shared_ptr<Buffer> Wrap(const T* data, SizeType length) {
189 return std::make_shared<Buffer>(reinterpret_cast<const uint8_t*>(data),
190 static_cast<int64_t>(sizeof(T) * length));
191 }
192
193 /// \brief Create buffer referencing std::vector with some length without
194 /// copying

Callers 15

VisitMethod · 0.85
TESTFunction · 0.85
TYPED_TEST_PFunction · 0.85
TESTFunction · 0.85
SetUpMethod · 0.85
TEST_FFunction · 0.85
SetUpMethod · 0.85
TYPED_TEST_PFunction · 0.85
MakeSparseCOOIndexMethod · 0.85
MakeSparseTensorMethod · 0.85
SetUpMethod · 0.85
SetUpMethod · 0.85

Calls 2

dataMethod · 0.45
sizeMethod · 0.45

Tested by 15

TESTFunction · 0.68
TYPED_TEST_PFunction · 0.68
TESTFunction · 0.68
SetUpMethod · 0.68
TEST_FFunction · 0.68
SetUpMethod · 0.68
TYPED_TEST_PFunction · 0.68
MakeSparseCOOIndexMethod · 0.68
MakeSparseTensorMethod · 0.68
SetUpMethod · 0.68
SetUpMethod · 0.68
SetUpMethod · 0.68