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

Function Buffer

cpp/src/arrow/buffer.h:72–80  ·  view source on GitHub ↗

\brief Construct from buffer and size without copying memory \param[in] data a memory buffer \param[in] size buffer size \note The passed memory must be kept alive through some other means

Source from the content-addressed store, hash-verified

70 ///
71 /// \note The passed memory must be kept alive through some other means
72 Buffer(const uint8_t* data, int64_t size)
73 : is_mutable_(false),
74 is_cpu_(true),
75 data_(data),
76 size_(size),
77 capacity_(size),
78 device_type_(DeviceAllocationType::kCPU) {
79 SetMemoryManager(default_cpu_memory_manager());
80 }
81
82 Buffer(const uint8_t* data, int64_t size, std::shared_ptr<MemoryManager> mm,
83 std::shared_ptr<Buffer> parent = NULLPTR,

Callers 2

buffer.hFile · 0.70
TESTFunction · 0.50

Calls 4

SetMemoryManagerFunction · 0.85
dataMethod · 0.45
sizeMethod · 0.45

Tested by 1

TESTFunction · 0.40