Split binary streams by length fields in messages' headers