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

Method ImportFixedSizePrimitive

cpp/src/arrow/c/bridge.cc:1747–1759  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1745 }
1746
1747 Status ImportFixedSizePrimitive(const FixedWidthType& type) {
1748 RETURN_NOT_OK(CheckNoChildren());
1749 RETURN_NOT_OK(CheckNumBuffers(2));
1750 RETURN_NOT_OK(AllocateArrayData());
1751 RETURN_NOT_OK(ImportNullBitmap());
1752 if (bit_util::IsMultipleOf8(type.bit_width())) {
1753 RETURN_NOT_OK(ImportFixedSizeBuffer(1, type.bit_width() / 8));
1754 } else {
1755 DCHECK_EQ(type.bit_width(), 1);
1756 RETURN_NOT_OK(ImportBitsBuffer(1));
1757 }
1758 return Status::OK();
1759 }
1760
1761 Status ImportBinaryView(const BinaryViewType&) {
1762 RETURN_NOT_OK(CheckNoChildren());

Callers

nothing calls this directly

Calls 3

IsMultipleOf8Function · 0.85
OKFunction · 0.50
bit_widthMethod · 0.45

Tested by

no test coverage detected