~ubuntu-branches/ubuntu/karmic/python3.0/karmic

« back to all changes in this revision

Viewing changes to Doc/c-api/buffer.rst

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2009-02-16 17:18:23 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20090216171823-1d5cm5qnnjvmnzzm
Tags: 3.0.1-0ubuntu1
New upstream version.

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
 
32
32
.. index:: single: PyBufferProcs
33
33
 
34
 
More information on the buffer interface is provided in the section 
 
34
More information on the buffer interface is provided in the section
35
35
:ref:`buffer-structs`, under the description for :ctype:`PyBufferProcs`.
36
36
 
37
37
Buffer objects are useful as a way to expose the data from another object's
104
104
                  pointer += strides[i] * indices[i];
105
105
                  if (suboffsets[i] >=0 ) {
106
106
                      pointer = *((char**)pointer) + suboffsets[i];
107
 
                  }                     
 
107
                  }
108
108
              }
109
109
              return (void*)pointer;
110
110
           }