ParameterCode defined as Byte is too small
lpp168
✭
I the feel ParameterCode defined as Byte is too small, can not be defined as Short it?
[code2=csharp]public enum ParameterCode: byte
{
}[/code2]
[code2=csharp]public enum ParameterCode: byte
{
}[/code2]
0
Comments
-
We're using parameter codes as byte to reduce the data size that needs to be transmitted. If we used short, we would need to transmit 2 more bytes with every operation which are not needed in 99% of all cases (at least).
You have 255 parameter codes that can be re-used between different operations - we feel that this should be sufficient.
This thread discusses the parameter code limitations in more detail, please have a look: viewtopic.php?f=5&t=579&p=2758&hilit=parameter+code+byte#p27580