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

Function CheckBufferLength

cpp/src/arrow/scalar.cc:1071–1076  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1069
1070namespace internal {
1071Status CheckBufferLength(const FixedSizeBinaryType* t, const std::shared_ptr<Buffer>* b) {
1072 return t->byte_width() == (*b)->size()
1073 ? Status::OK()
1074 : Status::Invalid("buffer length ", (*b)->size(), " is not compatible with ",
1075 *t);
1076}
1077} // namespace internal
1078
1079namespace {

Callers

nothing calls this directly

Calls 4

OKFunction · 0.70
InvalidFunction · 0.70
byte_widthMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected