Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
924 B

  1. /* Buffer object interface */
  2. /* Note: the object's structure is private */
  3. #ifndef Py_BUFFEROBJECT_H
  4. #define Py_BUFFEROBJECT_H
  5. #ifdef __cplusplus
  6. extern "C" {
  7. #endif
  8. PyAPI_DATA(PyTypeObject) PyBuffer_Type;
  9. #define PyBuffer_Check(op) ((op)->ob_type == &PyBuffer_Type)
  10. #define Py_END_OF_BUFFER (-1)
  11. PyAPI_FUNC(PyObject *) PyBuffer_FromObject(PyObject *base,
  12. Py_ssize_t offset, Py_ssize_t size);
  13. PyAPI_FUNC(PyObject *) PyBuffer_FromReadWriteObject(PyObject *base,
  14. Py_ssize_t offset,
  15. Py_ssize_t size);
  16. PyAPI_FUNC(PyObject *) PyBuffer_FromMemory(void *ptr, Py_ssize_t size);
  17. PyAPI_FUNC(PyObject *) PyBuffer_FromReadWriteMemory(void *ptr, Py_ssize_t size);
  18. PyAPI_FUNC(PyObject *) PyBuffer_New(Py_ssize_t size);
  19. #ifdef __cplusplus
  20. }
  21. #endif
  22. #endif /* !Py_BUFFEROBJECT_H */