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

Method CreateIntBuffer

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

AppendMethod · 0.45
FinishMethod · 0.45

Tested by

no test coverage detected