Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bblanchon/ArduinoJson
/ addPadding
Function
addPadding
src/ArduinoJson/Memory/Alignment.hpp:21–24 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
19
}
20
21
inline size_t addPadding(size_t bytes) {
22
const size_t mask = sizeof(void*) - 1;
23
return (bytes + mask) & ~mask;
24
}
25
26
template <size_t bytes>
27
struct AddPadding {
Callers
2
enable_alignment_1.cpp
File · 0.85
enable_alignment_0.cpp
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected