Added a function current_result which allows reading partial buffers

Sometimes we have to parse buffers progressively. It helps to have access to what's already processed.