All books

Professional

Apps About Coach Log in Start reading

Quantitative Finance · Glossary

What is Buffer protocol?

Definition 9.5 Research, Data and Risk Platforms · Chapter 9 — Native Extensions

The buffer protocol is Python’s interface by which an object exposes its underlying memory — a pointer, the element type, the shape and the strides — to other objects and to compiled code, so that they can read and write it without copying.

Read in context →