Updated calculation of PDU Size in Electromagnetic Emission PDU Constructor
Updated PDU size for ElectromagneticEmissionPDU constrcutor taking a vector of EmissionSystem to account for the size of those EmissionSystems.
Update for commit 759ab63
Yes, the memset in SetData should be the following: // Clear extra space if( DataSize < 15 ) memset( m_Data + DataSize, 0, 15 - DataSize ); As for not being able to set VARIABLE_PARAMETER_SIZE worth of data, VARIABLE_PARAMETER_SIZE is the size for the whole variable parameter. The Data portion of the class is only 15 Bytes as the Type is the first byte of the strucuture. I will try and get a the above patch in later this afternoon for the memset.
Fixed #70: VariableParameter::SetData size handling
Yes, the memcpy in SetData should be the following: // Clear extra space if( DataSize < 15 ) memset( m_Data + DataSize, 0, 15 - DataSize ); As for not being able to set VARIABLE_PARAMETER_SIZE worth of data, VARIABLE_PARAMETER_SIZE is the size for the whole variable parameter. The Data portion of the class is only 15 Bytes as the Type is the first byte of the strucuture. I will try and get a the above patch in later this afternoon for the memset.
Fixed #70: VariableParameter::SetData size handling
Fixed #70: VariableParameter::SetData size handling