LwIP
LWIP_MEM_ALIGN_BUFFER
is only used within LwIP.
Symbol previews are coming soon...
Symbols
loading...
Files
loading...
CodeScope
STM32 Libraries and Samples
LwIP
LWIP_MEM_ALIGN_BUFFER
LWIP_MEM_ALIGN_BUFFER macro
Calculate safe memory size for an aligned buffer when using an unaligned type as storage. This includes a safety-margin on (MEM_ALIGNMENT - 1) at the start (e.g. if buffer is u8_t[] and actual data will be u32_t*)
Syntax
from
arch.h:287
#define
LWIP_MEM_ALIGN_BUFFER
(
size
)
(
(
(
size
)
+
MEM_ALIGNMENT
-
1U
)
)
Arguments
size
References
Location
Text
arch.h:287
#define
LWIP_MEM_ALIGN_BUFFER
(
size
)
(
(
(
size
)
+
MEM_ALIGNMENT
-
1U
)
)
arch.h:271
#define
LWIP_DECLARE_MEMORY_ALIGNED
(
variable_name
,
size
)
u8_t
variable_name
[
LWIP_MEM_ALIGN_BUFFER
(
size
)
]
netdb.c:190
if
(
buflen
<
(
sizeof
(
struct
gethostbyname_r_helper
)
+
LWIP_MEM_ALIGN_BUFFER
(
namelen
+
1
)
)
)
{