Go to the source code of this file.
Wireshark - Network traffic analyzer By Gerald Combs geral.nosp@m.d@wi.nosp@m.resha.nosp@m.rk.o.nosp@m.rg Copyright 1998 Gerald Combs
SPDX-License-Identifier: GPL-2.0-or-later
◆ WS_PADDING_TO_16
| #define WS_PADDING_TO_16 |
( |
| n | ) |
|
Value:((16U - ((n) % 16U)) % 16U)
Compute padding needed to align to 16 bytes.
- Parameters
-
- Returns
- Number of bytes needed to reach next multiple of 16.
◆ WS_PADDING_TO_2
| #define WS_PADDING_TO_2 |
( |
| n | ) |
|
Value:
Compute padding needed to align to 2 bytes.
- Parameters
-
- Returns
- Number of bytes needed to reach next multiple of 2.
◆ WS_PADDING_TO_32
| #define WS_PADDING_TO_32 |
( |
| n | ) |
|
Value:((32U - ((n) % 32U)) % 32U)
Compute padding needed to align to 32 bytes.
- Parameters
-
- Returns
- Number of bytes needed to reach next multiple of 32.
◆ WS_PADDING_TO_4
| #define WS_PADDING_TO_4 |
( |
| n | ) |
|
Value:
Compute padding needed to align to 4 bytes.
- Parameters
-
- Returns
- Number of bytes needed to reach next multiple of 4.
◆ WS_PADDING_TO_8
| #define WS_PADDING_TO_8 |
( |
| n | ) |
|
Value:
Compute padding needed to align to 8 bytes.
- Parameters
-
- Returns
- Number of bytes needed to reach next multiple of 8.