Process text buffer to extract complete lines
Handles different line ending styles (\n, \r\n, \r) and preserves incomplete lines for the next processing cycle.
Text buffer to process
Object with complete lines and remainder
If a single line exceeds maximum length
Process text buffer to extract complete lines
Handles different line ending styles (\n, \r\n, \r) and preserves incomplete lines for the next processing cycle.