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

Method ImportFixedSizePrimitive

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

Source from the content-addressed store, hash-verified

1748 }
1749
1750 Status ImportFixedSizePrimitive(const FixedWidthType& type) {
1751 RETURN_NOT_OK(CheckNoChildren());
1752 RETURN_NOT_OK(CheckNumBuffers(2));
1753 RETURN_NOT_OK(AllocateArrayData());
1754 RETURN_NOT_OK(ImportNullBitmap());
1755 if (bit_util::IsMultipleOf8(type.bit_width())) {
1756 RETURN_NOT_OK(ImportFixedSizeBuffer(1, type.bit_width() / 8));
1757 } else {
1758 DCHECK_EQ(type.bit_width(), 1);
1759 RETURN_NOT_OK(ImportBitsBuffer(1));
1760 }
1761 return Status::OK();
1762 }
1763
1764 Status ImportBinaryView(const BinaryViewType&) {
1765 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