Functions | |
| constexpr uint32_t | AlignToBoundary (uint32_t bytes) |
| Round a byte count up to the next serialization boundary. | |
Variables | |
| constexpr uint32_t | SECTION_LENGTH_FIELD_SIZE = sizeof(uint32_t) |
| Bytes occupied by the length prefix word that precedes each serialized section. | |
| constexpr uint32_t | SERIALIZATION_ALIGNMENT = sizeof(uint32_t) |
| Serialized sections are padded so that each one starts on a 4-byte boundary. | |
Round a byte count up to the next serialization boundary.
| bytes | the unpadded byte count |
Definition at line 614 of file packet.cc.
References AlignToBoundary(), and SERIALIZATION_ALIGNMENT.
Referenced by AlignToBoundary().
Serialized sections are padded so that each one starts on a 4-byte boundary.
Definition at line 606 of file packet.cc.
Referenced by AlignToBoundary().