c
payload_size = (smh->submessageLength - (msg->pos + 4)) & 0xFFFFFFFF; // Mask for 32-bit
