Implement a byteswapping function for the Pcmd data type.
Get rid of the non-inline byteswapping functions.