MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ padded_size()

constexpr size_t MayaFlux::Transitive::Protocol::padded_size ( size_t  len)
constexprnoexcept

Round len up to the next 4-byte boundary.

Used by OSC and any other protocol requiring 4-byte field alignment. Example: padded_size(5) == 8, padded_size(4) == 4.

Definition at line 17 of file BinaryBuffer.hpp.

18{
19 return (len + 3) & ~size_t(3);
20}

Referenced by read_blob(), read_string(), write_blob(), and write_string().

+ Here is the caller graph for this function: