We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a5ce2d commit 149f134Copy full SHA for 149f134
bson/src/main/org/bson/io/ByteBufferBsonInput.java
@@ -203,7 +203,7 @@ private int computeCStringLength(final int prevPos) {
203
*/
204
long mask = chunk - 0x0101010101010101L;
205
/*
206
- mask will only have the most significant bit set iff it was a 0x00 byte (0x00 becomes 0xFF because of the borrow).
+ mask will only have the most significant bit in each byte set iff it was a 0x00 byte (0x00 becomes 0xFF because of the borrow).
207
~chunk will have bits that were originally 0 set to 1.
208
mask & ~chunk will have the most significant bit in each byte set iff original byte was 0x00.
209
0 commit comments