cpython/Modules/_testcapi/buffer.c

/* Test PEP 688 - Buffers */

#include "parts.h"


#include <stddef.h>                 // offsetof

testBufObject;

static PyObject *
testbuf_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
{}

static int
testbuf_traverse(testBufObject *self, visitproc visit, void *arg)
{}

static int
testbuf_clear(testBufObject *self)
{}

static void
testbuf_dealloc(testBufObject *self)
{}

static int
testbuf_getbuf(testBufObject *self, Py_buffer *view, int flags)
{}

static void
testbuf_releasebuf(testBufObject *self, Py_buffer *view)
{}

static PyBufferProcs testbuf_as_buffer =;

static struct PyMemberDef testbuf_members[] =;

static PyTypeObject testBufType =;

int
_PyTestCapi_Init_Buffer(PyObject *m) {}