title: Dereferencing a pointer created with ffi.addressof in Python CFFI (C *-operator equivalent?)
body: <pre><code>values = ffi.new( "int[]", 10 )
  pValue = ffi.addressof( pInt, 0 )
  </code></pre>
  
  <p>With Python CFFI, the code above creates a pointer to the first element of <code>values</code> as <code>pValue</code>.</p>
  
  <p>You can then access its content with <code>values[ 0 ]</code>, but this is not really transparent and it is sometimes inconvenient to keep track of what indice is what value.</p>
  
  <p>Is there anything such as the C <code>*-operator</code>, a function or something else, to dereference <code>pValue</code> and access its content directly?  </p>
  
  <p>In other languages... :</p>
  
  <pre><code>// In C:
  // =====
  
  int values[ 10 ] = {0};
  int* pValue = &amp;( values[ 0 ] );
  
  func_with_pointer_to_int_as_param( pValue );
  
  printf( "%d\n", *pValue );
  
  -------------------------------------------------------------
  
  # In Python with CFFI:
  # ====================
  
  values = ffi.new( "int[]", 10 )
  pValue = ffi.addressof( values, 0 )
  
  lib.func_with_pointer_to_int_as_param( pValue ) #lib is where the C functions are
  
  print values[ 0 ] #Something else than that? Sort of "ffi.contentof( pValue )"?
  </code></pre>
  
  <p><strong>EDIT :</strong><br>
  Here is a use case where it is useful:</p>
  
  <p>I find it more readable to do:</p>
  
  <pre><code>pC_int = ffi.new( "int[]", 2 )
  pType  = ffi.addressof( pC_int, 0 )
  pValue = ffi.addressof( pC_int, 1 )
  ...
  
  # That you access with:
  print "Type: {0}, value: {1}".format( pC_int[ 0 ], pC_int[ 1 ] )
  </code></pre>
  
  <p>Rather than:</p>
  
  <pre><code>pInt_type = ffi.new( "int[]", 1 )
  pType     = ffi.addressof( pInt_type, 0 )
  
  pInt_value = ffi.new( "int[]", 1 )
  pValue     = ffi.addressof( pInt_value, 0 )
  
  ...
  
  # That you access with:
  print "Type: {0}, value: {1}".format( pInt_type[ 0 ], pInt_value[ 0 ] )
  </code></pre>
  
  <p>And I guess the former is faster. But, when you want to access the values it makes it inconvenient to remember like "ok type is number 0" etc...</p>