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

Function CheckAlignment

cpp/src/arrow/util/align_util.cc:36–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34namespace util {
35
36bool CheckAlignment(const Buffer& buffer, int64_t alignment) {
37 if (alignment <= 0) {
38 return true;
39 }
40 return buffer.address() % alignment == 0;
41}
42
43namespace {
44

Callers 7

CheckSelfAlignmentFunction · 0.70
EnsureAlignmentFunction · 0.70
TESTFunction · 0.70
TYPED_TESTFunction · 0.70
TEST_FFunction · 0.70
ARROW_ASSIGN_OR_RAISEMethod · 0.50
HandleUnalignedBuffersFunction · 0.50

Calls 8

CheckSelfAlignmentFunction · 0.85
addressMethod · 0.80
resizeMethod · 0.80
dataMethod · 0.45
sizeMethod · 0.45
num_chunksMethod · 0.45
num_columnsMethod · 0.45
columnMethod · 0.45

Tested by 4

TESTFunction · 0.56
TYPED_TESTFunction · 0.56
TEST_FFunction · 0.56
ARROW_ASSIGN_OR_RAISEMethod · 0.40