Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cython
Commits
ff78ab32
Commit
ff78ab32
authored
Feb 07, 2015
by
Lars Buitinck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comment some fields in buffer protocol docs
[ci skip]
parent
d86fba4a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
docs/src/userguide/buffer.rst
docs/src/userguide/buffer.rst
+4
-4
No files found.
docs/src/userguide/buffer.rst
View file @
ff78ab32
...
@@ -73,16 +73,16 @@ which Cython handles specially.
...
@@ -73,16 +73,16 @@ which Cython handles specially.
self.strides[0] = self.ncols * self.strides[1]
self.strides[0] = self.ncols * self.strides[1]
buffer.buf = <char *>&(self.v[0])
buffer.buf = <char *>&(self.v[0])
buffer.format = 'f'
buffer.format = 'f'
# float
buffer.internal = NULL
buffer.internal = NULL
# see References
buffer.itemsize = itemsize
buffer.itemsize = itemsize
buffer.len = self.v.size() * itemsize
buffer.len = self.v.size() * itemsize
# product(shape) * itemsize
buffer.ndim = 2
buffer.ndim = 2
buffer.obj = self
buffer.obj = self
buffer.readonly = 0
buffer.readonly = 0
buffer.shape = self.shape
buffer.shape = self.shape
buffer.strides = self.strides
buffer.strides = self.strides
buffer.suboffsets = NULL
buffer.suboffsets = NULL
# for pointer arrays only
def __releasebuffer__(self, Py_buffer *buffer):
def __releasebuffer__(self, Py_buffer *buffer):
pass
pass
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment