and then either currentPacketPtr++ or *(currentPacketPtr++) = attenuationModifier if you want it on one line.