You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For improved efficiency consider changing 1st argument to be a double pointer of type void, and not a single pointer of type void. Then a straight assignment can be used in place of memcpy(used to copy 4 bytes). This will be an API change.
{{{
int32 CFE_PSP_WriteToCDS(void *PtrToDataToWrite, uint32 CDSOffset, uint32 NumBytes)
}}}
to
{{{
int32 CFE_PSP_WriteToCDS(void **PtrToDataToWrite, uint32 CDSOffset, uint32 NumBytes)
}}}
Need to assess this proposed change. Why was it implemented the way it was originally?
The text was updated successfully, but these errors were encountered:
Possible improved efficiency based on special case (4 byte copy) likely isn't enough to justify an API change. Consider writing a unique function (CFE_PSP_WriteToCDS_32bit or similar) if needed and benchmark against current implementation to justify use case.
For improved efficiency consider changing 1st argument to be a double pointer of type void, and not a single pointer of type void. Then a straight assignment can be used in place of memcpy(used to copy 4 bytes). This will be an API change.
{{{
int32 CFE_PSP_WriteToCDS(void *PtrToDataToWrite, uint32 CDSOffset, uint32 NumBytes)
}}}
to
{{{
int32 CFE_PSP_WriteToCDS(void **PtrToDataToWrite, uint32 CDSOffset, uint32 NumBytes)
}}}
Need to assess this proposed change. Why was it implemented the way it was originally?
The text was updated successfully, but these errors were encountered: