anchor.diff:              bad_int_or_missing_space
       end.
   
  +-spec parse_to_nl(binary()) -> {'incomplete', 'unknown', binary()} |
  +                               {{'malformed', binary()}, Rest::binary()}.
   parse_to_nl(Buf) ->
       case binary:split(Buf, [<<"\r\n">>, <<"\n">>]) of
           [Msg, Rest] ->
  
positive.code:     parse_recursive(Bytes, []).
  
  
  parse_recursive(<<>>, Acc) ->
      {ok, lists:reverse(Acc), #buf{}};
  parse_recursive(Buf, Acc) ->
  
negative.code: 
  %% Idx 0 must be 1-9.
  %% Finds the ascii encoded integer terminated by a space.
  -spec find_int(binary(), non_neg_integer()) ->
                        'incomplete' |
                        {Length::non_neg_integer(),
                         MsgOffset::non_neg_integer()} |
                        'bad_int_or_missing_space'.
  find_int(Buf, Idx) when byte_size(Buf) =< Idx ->
      incomplete;
  find_int(Buf, Idx) ->
  