// Find the first marker byte in the rest of the stream.
const uint8_t* ptr = memchr(src, MARKER_CHAR, len - bytes_read);
if (ptr == NULL) {
// Find the first marker byte in the rest of the stream.
const uint8_t* ptr = memchr(src, MARKER_CHAR, len - bytes_read);
if (ptr == NULL) {