76 Commits (080137961daef9a1b0fe1f37f54a820842728442)

Author SHA1 Message Date
Paul Sokolovsky 497660fcda py/stream: Add mp_stream_close() helper function. 9 years ago
Paul Sokolovsky 7f7c84b10a py/stream: Support both "exact size" and "one underlying call" operations. 9 years ago
Damien George 358e5d8bad py/stream: Move uPy func obj wrappers to below their respective funcs. 9 years ago
Damien George 657aef66ff py/stream: Simplify arg extraction logic for stream_ioctl. 9 years ago
Paul Sokolovsky 558fd5d228 py/stream: ioctl(): Properly support 2-arg form. 9 years ago
Paul Sokolovsky 6c3db26ab7 py/stream: Fix signed comparison issue. 9 years ago
Paul Sokolovsky 0c97e4c414 py/stream: Add Python-level ioctl() method. 9 years ago
Paul Sokolovsky 53ad5edc01 py/stream: Fix stupid thinko with variable naming/shadowing. 9 years ago
Paul Sokolovsky 4a02a8f74d py/stream: Fix object vs ptr usecase in mp_stream_writeall(). 9 years ago
Paul Sokolovsky d4c8e626f2 py/stream: Add mp_stream_writeall() helper function. 9 years ago
Damien George 4b72b3a133 py: Change type signature of builtin funs that take variable or kw args. 9 years ago
Damien George e84325bd1d py: Add mp_get_stream_raise to factor out check for stream methods. 9 years ago
Damien George 999cedb90f py: Wrap all obj-ptr conversions in MP_OBJ_TO_PTR/MP_OBJ_FROM_PTR. 9 years ago
Damien George 4e7107a572 py: Change mp_print_strn_t func type to use size_t for the str length. 9 years ago
Paul Sokolovsky 7799410950 py/stream: Allow to reuse is_nonblocking_error(). 9 years ago
blmorris bdd78c31b6 py: Add stream_tell method, and use for unix and stmhal file tell. 9 years ago
Damien George c50772d19f py: Add mp_obj_get_int_truncated and use it where appropriate. 10 years ago
Damien George 0d3cb6726d py: Change vstr so that it doesn't null terminate buffer by default. 10 years ago
Paul Sokolovsky ca3dbb8d8b stream: readall(): Make sure there's a trailing NUL char. 10 years ago
Paul Sokolovsky 425f952a1e stream: Fix readall() implementation in respect to NUL terminator bytes. 10 years ago
Damien George 05005f679e py: Remove mp_obj_str_builder and use vstr instead. 10 years ago
Damien George 0b9ee86133 py: Add mp_obj_new_str_from_vstr, and use it where relevant. 10 years ago
Damien George 51dfcb4bb7 py: Move to guarded includes, everywhere in py/ core. 10 years ago
Damien George be6d8be91e py: Rename mp_obj_int_get to mp_obj_int_get_truncated; fix struct.pack. 10 years ago
Damien George 5694cc5490 py: Make stream seek correctly check for ioctl fn; add seek for textio. 10 years ago
Paul Sokolovsky 838eb1fa2d stream: Implement seek operation support via ioctl, wrapped in generic method. 10 years ago
Damien George d00d8ac95c py: Use mp_uint_t where appropriate in stream functions. 10 years ago
Paul Sokolovsky e2f8d98525 stream: Add optional 2nd "length" arg to .readinto() - extension to CPython. 10 years ago
Paul Sokolovsky 1a55b6a787 unix, stmhal: Implement file.readinto() method. 10 years ago
Damien George b7a4b0f86f py: Improve stream_read so it doesn't need to alloc 2 bits of heap. 10 years ago
Paul Sokolovsky 923a8a8320 stream: Handle non-blocking errors in readline() properly. 10 years ago
Paul Sokolovsky 0c7b26c0f8 stream: Return errno value as first arg of OSError exception. 10 years ago
Damien George 69b7dae362 py: Small cleanup in stream.c. 10 years ago
Damien George adf0f2ae1a py: Change stream protocol API: fns return uint; is_text for text. 10 years ago
Paul Sokolovsky 4ecb700fe3 streams: Treat non-error output size as unsigned. 10 years ago
Paul Sokolovsky e1b1abc1e8 stream: Revert to checking for the correct error value. 10 years ago
Dave Hylands 1d8816c36b Deal with reading a buffer less than what was allocated. 10 years ago
Damien George 1694bc733d py: Add stream reading of n unicode chars; unicode support by default. 10 years ago
Paul Sokolovsky ac736f15c9 stream: Factor out mp_stream_write() method to write a memstring to stream. 10 years ago
Damien George 40f3c02682 Rename machine_(u)int_t to mp_(u)int_t. 11 years ago
stijn ec6fa8732b windows: Sync mpconfigport.h with the unix' version 11 years ago
Paul Sokolovsky f5f6c3b792 streams: Reading by char count from unicode text streams is not implemented. 11 years ago
Paul Sokolovsky e22cddbe2a stream: Use mp_obj_is_true() for EOF testing. 11 years ago
Damien George f600a6a085 py: Slightly improve efficiency of mp_obj_new_str; rename str_new. 11 years ago
Paul Sokolovsky a47b64ae2d objstringio: Implement io.BytesIO. 11 years ago
Paul Sokolovsky da9f0924ef py, unix: Add copyright for modules I worked closely on. 11 years ago
Paul Sokolovsky 0ef015b253 stream: Make non-blcoking stream support configurable. 11 years ago
Paul Sokolovsky b9be45e421 stream: Use standard name of DEFAULT_BUFFER_SIZE. 11 years ago
Paul Sokolovsky 6e73143de8 stream: Add compliant handling of non-blocking readall(). 11 years ago
Paul Sokolovsky a592104acd stream: Add compliant handling of non-blocking read()/write(). 11 years ago