TODO: wrong implementation of parse_length_delimited_from_reader