- Set lookup type flags even if no reply tunnel specified
- Reduce object churn when writing some messages
This commit is contained in:
zzz
2014-11-15 17:45:14 +00:00
parent 7f72830ec8
commit 279e102d7a
5 changed files with 33 additions and 39 deletions

View File

@@ -70,8 +70,7 @@ public class DataMessage extends FastI2NPMessageImpl {
out[curIndex++] = 0x0;
out[curIndex++] = 0x0;
} else {
byte len[] = DataHelper.toLong(4, _data.length);
System.arraycopy(len, 0, out, curIndex, 4);
DataHelper.toLong(out, curIndex, 4, _data.length);
curIndex += 4;
System.arraycopy(_data, 0, out, curIndex, _data.length);
curIndex += _data.length;