Home
last modified time | relevance | path

Searched refs:out_sz (Results 1 – 8 of 8) sorted by relevance

/AliOS-Things-master/components/py_engine/engine/py/
A Dstream.c66 if (out_sz == 0) { in mp_stream_rw()
77 return out_sz; in mp_stream_rw()
80 buf += out_sz; in mp_stream_rw()
81 size -= out_sz; in mp_stream_rw()
82 done += out_sz; in mp_stream_rw()
213 vstr.len = out_sz; in stream_read_generic()
326 if (out_sz == 0) { in stream_readall()
332 p += out_sz; in stream_readall()
380 if (out_sz == 0) { in stream_unbuffered_readline()
515 return out_sz; in mp_stream_posix_write()
[all …]
A Dmodio.c154 mp_uint_t out_sz = mp_stream_write_exactly(self->stream, self->buf, self->alloc, errcode); in bufwriter_write() local
155 (void)out_sz; in bufwriter_write()
161 assert(out_sz == self->alloc); in bufwriter_write()
173 mp_uint_t out_sz = mp_stream_write_exactly(self->stream, self->buf, self->len, &err); in bufwriter_flush() local
174 (void)out_sz; in bufwriter_flush()
177 assert(out_sz == self->len); in bufwriter_flush()
/AliOS-Things-master/components/py_engine/engine/extmod/
A Dmoduwebsocket.c83 if (out_sz == 0 || out_sz == MP_STREAM_ERROR) { in websocket_read()
84 return out_sz; in websocket_read()
86 self->buf_pos += out_sz; in websocket_read()
87 self->to_recv -= out_sz; in websocket_read()
166 mp_uint_t out_sz = 0; in websocket_read() local
174 if (out_sz == 0 || out_sz == MP_STREAM_ERROR) { in websocket_read()
175 return out_sz; in websocket_read()
178 sz = out_sz; in websocket_read()
208 if (out_sz != 0) { in websocket_read()
209 return out_sz; in websocket_read()
[all …]
A Dmodwebrepl.c125 return out_sz; in write_file_chunk()
127 readbuf[0] = out_sz; in write_file_chunk()
128 readbuf[1] = out_sz >> 8; in write_file_chunk()
131 return out_sz; in write_file_chunk()
180 mp_uint_t out_sz; in webrepl_read() local
183 } while (out_sz == -2); in webrepl_read()
184 return out_sz; in webrepl_read()
194 if (out_sz == 0 || out_sz == MP_STREAM_ERROR) { in _webrepl_read()
195 return out_sz; in _webrepl_read()
221 return out_sz; in _webrepl_read()
[all …]
A Duos_dupterm.c106 mp_uint_t out_sz = stream_p->read(MP_STATE_VM(dupterm_objs[idx]), buf, 1, &errcode); in mp_uos_dupterm_rx_chr() local
107 if (errcode == 0 && out_sz != 0) { in mp_uos_dupterm_rx_chr()
120 mp_uint_t out_sz = stream_p->read(MP_STATE_VM(dupterm_objs[idx]), buf, 1, &errcode); in mp_uos_dupterm_rx_chr() local
121 if (out_sz == 0) { in mp_uos_dupterm_rx_chr()
124 } else if (out_sz == MP_STREAM_ERROR) { in mp_uos_dupterm_rx_chr()
A Dmodussl_mbedtls.c125 mp_uint_t out_sz = sock_stream->write(sock, buf, len, &err); in _mbedtls_ssl_send() local
126 if (out_sz == MP_STREAM_ERROR) { in _mbedtls_ssl_send()
132 return out_sz; in _mbedtls_ssl_send()
143 mp_uint_t out_sz = sock_stream->read(sock, buf, len, &err); in _mbedtls_ssl_recv() local
144 if (out_sz == MP_STREAM_ERROR) { in _mbedtls_ssl_recv()
150 return out_sz; in _mbedtls_ssl_recv()
A Dmoduzlib.c59 mp_uint_t out_sz = stream->read(self->src_stream, &c, 1, &err); in read_src_stream() local
60 if (out_sz == MP_STREAM_ERROR) { in read_src_stream()
63 if (out_sz == 0) { in read_src_stream()
A Dmodlwip.c126 mp_uint_t out_sz = type->stream_p->read(MP_STATE_VM(lwip_slip_stream), data, len, &error); in sio_tryread() local
127 if (out_sz == MP_STREAM_ERROR) { in sio_tryread()
134 return out_sz; in sio_tryread()

Completed in 14 milliseconds