✅ How Does StreamReader.ReadLine Know When to Stop?
I am working with streams and don’t want to grab more data than I need from the stream. I realized somehow a streamreader knows when to stop reading, but I can’t imagine it reads one byte at a time to find the terminator character. How does it know when it has read enough and not consume more of the buffer?