View Single Post
  #1  
Old 03-09-2019, 02:27
chants chants is offline
VIP
 
Join Date: Jul 2016
Posts: 836
Rept. Given: 47
Rept. Rcvd 52 Times in 32 Posts
Thanks Given: 742
Thanks Rcvd at 1,148 Times in 531 Posts
chants Reputation: 52
I just meant in those cases where caller never uses 'b' after the call then the assignment is optimizable (not the addition as you mention its an index):
Quote:
private uint e(byte[] a, ref int b)
{
return BitConverter.ToUInt32(a, b + 4);
}
Anyway that's too advanced an optimization anyway. But the bug found in multiple tools is a good one which should be reported and fixed.
Reply With Quote