View Single Post
  #10  
Old 03-09-2019, 02:27
chants chants is offline
VIP
 
Join Date: Jul 2016
Posts: 876
Rept. Given: 48
Rept. Rcvd 53 Times in 32 Posts
Thanks Given: 755
Thanks Rcvd at 1,171 Times in 542 Posts
chants Reputation: 53
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