"up to ... *inclusive*."? or "up to and including ..." or something. Can confirm by saying that `length` bytes will be processed. Not sure how it's worded in other Javadoc for similar functions, but "up to" doesn't make the "including" clear.