summaryrefslogtreecommitdiff
path: root/Buffer Protocol.md
blob: bc2ef6671c3a239ba346e384919f3a82ad2c5011 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
---
tags:
  - python
---
[[Python]]

---

The buffer protocol provides access to underlying memory buffer.

The producer is the type that wraps a buffer and implements the "buffer interface" through which they export data about the underlying buffer.

The consumer is who gains access to the underlying buffer.