anchor.diff:              Error
       end.
   
  +%% Helpers
  +split_input(MaxSize, Input) when MaxSize > 0 ->
  +    case iolist_to_binary(Input) of
  +        <<Chunk:MaxSize/binary, Rest/binary>> ->
  +            [Chunk | split_input(MaxSize, Rest)];
  +        Chunk -> [Chunk]
  +    end.
  +
  
positive.code: % @doc Convert Input into the requested encoding.
  %
  conv(Cd, Input) ->
      try
          case chunk(Cd, Input) of
              {done, Result} -> 
                  {ok, Result};
              {more, _Result} ->
                  {error, einval}
          end
      after
          finalize(Cd)
      end.
  
  % @doc Close the encoder - dummy function, close will be done by the garbage collector.
  
negative.code: 
  % easy api one shot convert api
  -export([convert/2, convert/3]).
  
  -define(DEFAULT_CHUNK_SIZE, 1024 * 128).
  
  -on_load(init/0).
  
  