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

Method CreateIntBuffer

cpp/src/arrow/array/util.cc:866–872  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

864
865 template <typename IntType>
866 Result<std::shared_ptr<Buffer>> CreateIntBuffer(IntType value) {
867 std::shared_ptr<Buffer> buffer;
868 TypedBufferBuilder<IntType> builder(pool_);
869 RETURN_NOT_OK(builder.Append(/*num_copies=*/length_, value));
870 RETURN_NOT_OK(builder.Finish(&buffer));
871 return buffer;
872 }
873
874 Status CreateBufferOf(const void* data, size_t data_length,
875 std::shared_ptr<Buffer>* out) {

Callers

nothing calls this directly

Calls 2

AppendMethod · 0.45
FinishMethod · 0.45

Tested by

no test coverage detected