我对byte):
return (byte)(keyByte - codedByte);
I m trying now to understand what would the result be in cases where keyByte is smaller than codedByte, which results in a negative integer.
在进行了一些实验,以了解在幅度内产生价值消极的愤怒的结果[-255:-1]之后,我得出以下结果:
byte result = (byte) (-6); // result = 250
byte result = (byte) (-50); // result = 206
byte result = (byte) (-17); // result = 239
byte result = (byte) (-20); // result = 236
因此,如果<代码>-256 < a < 0,我得以通过以下方式确定结果:
result = 256 + a;
My question is: should I always expect this to be the case?