Skip to main content

PROBE_BYTES

Constant PROBE_BYTES 

Source
const PROBE_BYTES: usize = 2;
Expand description

Number of bytes read past the last needed line to tell whether more follows.

Why not one byte: lines are counted at the 0A byte, and in UTF-16LE the byte after it is the 00 completing the same \n code unit, so a single probe byte never reaches the next line.