Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
34
namespace util {
35
36
bool CheckAlignment(const Buffer& buffer, int64_t alignment) {
37
if (alignment <= 0) {
38
return true;
39
}
40
return buffer.address() % alignment == 0;
41
}
42
43
namespace {
44
Callers
7
CheckSelfAlignment
Function · 0.70
EnsureAlignment
Function · 0.70
TEST
Function · 0.70
TYPED_TEST
Function · 0.70
TEST_F
Function · 0.70
ARROW_ASSIGN_OR_RAISE
Method · 0.50
HandleUnalignedBuffers
Function · 0.50
Calls
8
CheckSelfAlignment
Function · 0.85
address
Method · 0.80
resize
Method · 0.80
data
Method · 0.45
size
Method · 0.45
num_chunks
Method · 0.45
num_columns
Method · 0.45
column
Method · 0.45
Tested by
4
TEST
Function · 0.56
TYPED_TEST
Function · 0.56
TEST_F
Function · 0.56
ARROW_ASSIGN_OR_RAISE
Method · 0.40