source: trunk/include/python2.4/bufferobject.h @ 490

Last change on this file since 490 was 88, checked in by cxsong, 19 years ago

copied from /opt/rappture/include

File size: 893 bytes
Line 
1
2/* Buffer object interface */
3
4/* Note: the object's structure is private */
5
6#ifndef Py_BUFFEROBJECT_H
7#define Py_BUFFEROBJECT_H
8#ifdef __cplusplus
9extern "C" {
10#endif
11
12
13PyAPI_DATA(PyTypeObject) PyBuffer_Type;
14
15#define PyBuffer_Check(op) ((op)->ob_type == &PyBuffer_Type)
16
17#define Py_END_OF_BUFFER        (-1)
18
19PyAPI_FUNC(PyObject *) PyBuffer_FromObject(PyObject *base,
20                                                 int offset, int size);
21PyAPI_FUNC(PyObject *) PyBuffer_FromReadWriteObject(PyObject *base,
22                                                          int offset,
23                                                          int size);
24
25PyAPI_FUNC(PyObject *) PyBuffer_FromMemory(void *ptr, int size);
26PyAPI_FUNC(PyObject *) PyBuffer_FromReadWriteMemory(void *ptr, int size);
27
28PyAPI_FUNC(PyObject *) PyBuffer_New(int size);
29
30#ifdef __cplusplus
31}
32#endif
33#endif /* !Py_BUFFEROBJECT_H */
Note: See TracBrowser for help on using the repository browser.