2026-06-16 17:09:34 +00:00
|
|
|
from cpython.buffer cimport Py_buffer
|
2026-02-06 22:23:20 +01:00
|
|
|
|
|
|
|
|
|
2026-06-16 17:09:34 +00:00
|
|
|
cdef class ByteSource:
|
|
|
|
|
cdef object owner
|
|
|
|
|
cdef bint has_view
|
|
|
|
|
cdef Py_buffer view
|
|
|
|
|
cdef unsigned char *ptr
|
|
|
|
|
cdef size_t length
|
|
|
|
|
|
|
|
|
|
cdef ByteSource bytesource(object, bint allow_none=*)
|
|
|
|
|
|
|
|
|
|
cdef class Buffer:
|
2026-02-06 22:23:20 +01:00
|
|
|
cdef size_t _buffer_size(self)
|
|
|
|
|
cdef void* _buffer_ptr(self)
|
|
|
|
|
cdef bint _buffer_writable(self)
|