aboutsummaryrefslogtreecommitdiff
path: root/py/stream.h
diff options
context:
space:
mode:
authorPaul Sokolovsky2014-10-18 22:44:07 +0300
committerPaul Sokolovsky2014-10-18 22:44:07 +0300
commit1a55b6a787ee7a568550ac0510632965af61c9ee (patch)
tree61f49937226e3dfb945adecef74cc1eff3dfc57e /py/stream.h
parentc92672d7f8fc410477a4e25789d15c1fd99b675b (diff)
unix, stmhal: Implement file.readinto() method.
Also, usocket.readinto(). Known issue is that .readinto() should be available only for binary files, but micropython uses single method table for both binary and text files.
Diffstat (limited to 'py/stream.h')
-rw-r--r--py/stream.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/py/stream.h b/py/stream.h
index 4cdc1b4dc..733c48e33 100644
--- a/py/stream.h
+++ b/py/stream.h
@@ -25,6 +25,7 @@
*/
MP_DECLARE_CONST_FUN_OBJ(mp_stream_read_obj);
+MP_DECLARE_CONST_FUN_OBJ(mp_stream_readinto_obj);
MP_DECLARE_CONST_FUN_OBJ(mp_stream_readall_obj);
MP_DECLARE_CONST_FUN_OBJ(mp_stream_unbuffered_readline_obj);
MP_DECLARE_CONST_FUN_OBJ(mp_stream_unbuffered_readlines_obj);