Use unsigned instead of int for sizes to improve parsing performance.