MHN
Add a comment on Hacker News →
1 of 13 comments
  1. Could you not just do

    sum(byteVals) + sum(intVals) + 128 * len(intVals)?