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

Method CreateUnionTypeCodes

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

Source from the content-addressed store, hash-verified

844 }
845
846 Result<std::shared_ptr<Buffer>> CreateUnionTypeCodes(int8_t type_code) {
847 TypedBufferBuilder<int8_t> builder(pool_);
848 RETURN_NOT_OK(builder.Resize(length_));
849 builder.UnsafeAppend(length_, type_code);
850 return builder.Finish();
851 }
852
853 template <typename OffsetType>
854 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