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

Method CreateUnionTypeCodes

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

Source from the content-addressed store, hash-verified

845 }
846
847 Result<std::shared_ptr<Buffer>> CreateUnionTypeCodes(int8_t type_code) {
848 TypedBufferBuilder<int8_t> builder(pool_);
849 RETURN_NOT_OK(builder.Resize(length_));
850 builder.UnsafeAppend(length_, type_code);
851 return builder.Finish();
852 }
853
854 template <typename OffsetType>
855 Status CreateOffsetsBuffer(OffsetType value_length, std::shared_ptr<Buffer>* out) {

Callers

nothing calls this directly

Calls 3

ResizeMethod · 0.45
UnsafeAppendMethod · 0.45
FinishMethod · 0.45

Tested by

no test coverage detected