Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisBellew committed Jan 31, 2024
1 parent cb06388 commit 482e0ca
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -368,8 +368,9 @@ private final void processBuffer(byte[] buffer, int numBytes, boolean lastRange,
}

/**
* If were less than one vector length away from the buffer
* then just take the remaining bytes as the final line.
* If we're less than one vector length away from the end
* of the buffer then just take the remaining bytes as the
* final line. If we tried to use a vector it would overflow.
*/
if (index >= numBytes - SPECIES.length()) {
slice(buffer, numBytes - 1, nameStart);
Expand Down

0 comments on commit 482e0ca

Please sign in to comment.