stream: Factor out mp_stream_write() method to write a memstring to stream.

This commit is contained in:
Paul Sokolovsky
2014-07-13 23:04:17 +03:00
parent 122c9db3db
commit ac736f15c9
2 changed files with 11 additions and 6 deletions

View File

@@ -32,3 +32,5 @@ MP_DECLARE_CONST_FUN_OBJ(mp_stream_write_obj);
// Iterator which uses mp_stream_unbuffered_readline_obj
mp_obj_t mp_stream_unbuffered_iter(mp_obj_t self);
mp_obj_t mp_stream_write(mp_obj_t self_in, const void *buf, mp_uint_t len);