summaryrefslogtreecommitdiffstatshomepage
path: root/py/stream.c
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-01-07 20:12:26 +0200
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-01-08 17:38:38 +0200
commit5b15daf6d1f41c166d8c94677663d2d5f91538d1 (patch)
treeffeb8739daf9242f6c1f8e25cf1519e79b0a2c58 /py/stream.c
parentea9e441a75d7ea6633b0ea95b21667c48a6f7b6a (diff)
downloadmicropython-5b15daf6d1f41c166d8c94677663d2d5f91538d1.tar.gz
micropython-5b15daf6d1f41c166d8c94677663d2d5f91538d1.zip
Add support for stream and buffer protocols.
Stream protocol is abstraction of serial I/O. Buffer protocol is abstraction of random-access I/O. These protocols are defined down to C level, to allow generic, while still efficient algorithms to be coded in C (like, buffered transfer between 2 stream objects, saving/loading of buffer object to/from stream, etc). (Note that CPython define buffer protocol on C level, but apparently not stream protocol).
Diffstat (limited to 'py/stream.c')
0 files changed, 0 insertions, 0 deletions