forked from I2P_Developers/i2p.i2p
More: Don't use DataHelper.readLong() for 1-byte reads, for efficiency
This commit is contained in:
@@ -85,7 +85,7 @@ public abstract class FastI2NPMessageImpl extends I2NPMessageImpl {
|
||||
throw new I2NPMessageException("Payload is too short " + maxLen);
|
||||
int cur = offset;
|
||||
if (type < 0) {
|
||||
type = (int)DataHelper.fromLong(data, cur, 1);
|
||||
type = data[cur] & 0xff;
|
||||
cur++;
|
||||
}
|
||||
_uniqueId = DataHelper.fromLong(data, cur, 4);
|
||||
|
||||
Reference in New Issue
Block a user