@@ 12850-12850 (lines=1) @@ | ||
12847 | // number of bytes available, we need to check if we end on a leading/high |
|
12848 | // surrogate. In that case, we need to wait for the next two bytes in order to |
|
12849 | // decode the last character properly. |
|
12850 | function utf16Text(buf, i) { |
|
12851 | if ((buf.length - i) % 2 === 0) { |
|
12852 | var r = buf.toString('utf16le', i); |
|
12853 | if (r) { |
@@ 213-213 (lines=1) @@ | ||
210 | // number of bytes available, we need to check if we end on a leading/high |
|
211 | // surrogate. In that case, we need to wait for the next two bytes in order to |
|
212 | // decode the last character properly. |
|
213 | function utf16Text(buf, i) { |
|
214 | if ((buf.length - i) % 2 === 0) { |
|
215 | var r = buf.toString('utf16le', i); |
|
216 | if (r) { |