byteIndex is now always an int bounded as a short