anchor.diff:  	    P
       end.
       
  -%% @doc returns a pointer to a memory area that is the size of a pointer
  +%% @doc Returns a pointer to a memory area that is the size of a pointer
   -spec pointer() -> ptr().
   pointer() ->
       {_, Size} = proplists:get_value("arch", nifty:get_config()),
       mem_alloc(Size).
   
  -%% @doc returns a pointer to the specified <code>Type</code>. This function allocates memory of <b>sizeof(</b><code>Type</code><b>)</b>
  +%% @doc Returns a pointer to the specified <code>Type</code>. This function allocates memory of <b>sizeof(</b><code>Type</code><b>)</b>
   -spec pointer(nonempty_string()) -> ptr() | undefined.
   pointer(Type) ->
       Types = get_types(),
  
positive.code: double_ref(_) ->    
      erlang:nif_error(nif_library_not_loaded).
  
  %% @doc converts an erlang string into a 0 terminated C string and returns a nifty pointer to it
  -spec list_to_cstr(string()) -> ptr().
  list_to_cstr(_) ->
      erlang:nif_error(nif_library_not_loaded).
  %% @doc converts a nifty pointer to a 0 terminated C string into a erlang string.
  -spec cstr_to_list(ptr()) -> string().
  cstr_to_list(_) ->
      erlang:nif_error(nif_library_not_loaded).
  
negative.code: mem_write_binary(_, _) ->
      erlang:nif_error(nif_library_not_loaded).
  
  %% @doc Reads <code>X2</code> bytes from the pointer <code>X1</code> and returns it as list
  -spec mem_read(ptr(), integer()) -> list().
  mem_read(_, _) ->
      erlang:nif_error(nif_library_not_loaded).
  
  %% @doc Allocates <code>X1</code> bytes and returns a pointer to it
  -spec mem_alloc(non_neg_integer()) -> ptr().
  mem_alloc(_) ->
      erlang:nif_error(nif_library_not_loaded).
  
  %% config
  %% @doc Returns the platform specific configuration of nifty
  -spec get_config() -> proplists:proplist().
  get_config() ->
      erlang:nif_error(nif_library_not_loaded).
  
  %% @doc Returns erlangs NIF environment
  -spec get_env() -> {integer(), nonempty_string()}.
  get_env() ->
      erlang:nif_error(nif_library_not_loaded).
  
  %% @doc Casts a pointer to a <code>Type</code> of a <code>Module</code>; returns an error if the module does not specify the type
  -spec as_type(ptr(), atom(), nonempty_string()) -> ptr() | undef.
  as_type({Address, _}, Module, Type) ->
      case dict:is_key(Type, Module:get_types()) of
  