py: Improve stream_read so it doesn't need to alloc 2 bits of heap.
py: Improve stream_read so it doesn't need to alloc 2 bits of heap.

ernesto-g/micropython,dmazzella/micropython,drrk/micropython,kostyll/micropython,kerneltask/micropython,ryannathans/micropython,ChuckM/micropython,hosaka/micropython,pramasoul/micropython,vitiral/micropython,SungEun-Steve-Kim/test-mp,mianos/micropython,blazewicz/micropython,stonegithubs/micropython,danicampora/micropython,lowRISC/micropython,suda/micropython,kerneltask/micropython,drrk/micropython,mpalomer/micropython,omtinez/micropython,paul-xxx/micropython,alex-robbins/micropython,matthewelse/micropython,dinau/micropython,suda/micropython,blmorris/micropython,Vogtinator/micropython,tdautc19841202/micropython,alex-march/micropython,PappaPeppar/micropython,mhoffma/micropython,adafruit/circuitpython,adafruit/micropython,SHA2017-badge/micropython-esp32,adafruit/micropython,toolmacher/micropython,misterdanb/micropython,ahotam/micropython,firstval/micropython,ChuckM/micropython,drrk/micropython,EcmaXp/micropython,puuu/micropython,vitiral/micropython,cnoviello/micropython,slzatz/micropython,galenhz/micropython,mgyenik/micropython,warner83/micropython,praemdonck/micropython,tdautc19841202/micropython,neilh10/micropython,kostyll/micropython,xhat/micropython,stonegithubs/micropython,misterdanb/micropython,henriknelson/micropython,Peetz0r/micropython-esp32,paul-xxx/micropython,noahwilliamsson/micropython,ceramos/micropython,adamkh/micropython,pozetroninc/micropython,lowRISC/micropython,galenhz/micropython,xyb/micropython,praemdonck/micropython,vriera/micropython,HenrikSolver/micropython,heisewangluo/micropython,dxxb/micropython,jmarcelino/pycom-micropython,emfcamp/micropython,firstval/micropython,ahotam/micropython,cwyark/micropython,SHA2017-badge/micropython-esp32,lbattraw/micropython,aethaniel/micropython,emfcamp/micropython,heisewangluo/micropython,ericsnowcurrently/micropython,dxxb/micropython,AriZuu/micropython,henriknelson/micropython,PappaPeppar/micropython,feilongfl/micropython,MrSurly/micropython,adamkh/micropython,toolmacher/micropython,adafruit/circuitpython,EcmaXp/micropython,cnoviello/micropython,oopy/micropython,jlillest/micropython,blazewicz/micropython,SungEun-Steve-Kim/test-mp,alex-march/micropython,KISSMonX/micropython,Vogtinator/micropython,xuxiaoxin/micropython,dhylands/micropython,aethaniel/micropython,ChuckM/micropython,selste/micropython,TDAbboud/micropython,martinribelotta/micropython,lbattraw/micropython,ericsnowcurrently/micropython,vriera/micropython,vriera/micropython,orionrobots/micropython,bvernoux/micropython,neilh10/micropython,adamkh/micropython,turbinenreiter/micropython,ganshun666/micropython,trezor/micropython,blazewicz/micropython,skybird6672/micropython,pramasoul/micropython,hiway/micropython,micropython/micropython-esp32,mgyenik/micropython,EcmaXp/micropython,swegener/micropython,puuu/micropython,dmazzella/micropython,lowRISC/micropython,ruffy91/micropython,pramasoul/micropython,kerneltask/micropython,hiway/micropython,turbinenreiter/micropython,ahotam/micropython,SHA2017-badge/micropython-esp32,pramasoul/micropython,Timmenem/micropython,paul-xxx/micropython,trezor/micropython,jimkmc/micropython,dinau/micropython,HenrikSolver/micropython,toolmacher/micropython,utopiaprince/micropython,mpalomer/micropython,rubencabrera/micropython,cwyark/micropython,danicampora/micropython,jimkmc/micropython,jimkmc/micropython,emfcamp/micropython,tobbad/micropython,jmarcelino/pycom-micropython,slzatz/micropython,cwyark/micropython,galenhz/micropython,micropython/micropython-esp32,turbinenreiter/micropython,pozetroninc/micropython,adafruit/micropython,Vogtinator/micropython,supergis/micropython,vitiral/micropython,utopiaprince/micropython,xyb/micropython,tobbad/micropython,rubencabrera/micropython,noahchense/micropython,heisewangluo/micropython,MrSurly/micropython-esp32,pfalcon/micropython,kerneltask/micropython,mgyenik/micropython,neilh10/micropython,pfalcon/micropython,torwag/micropython,oopy/micropython,tralamazza/micropython,infinnovation/micropython,hiway/micropython,HenrikSolver/micropython,adafruit/micropython,heisewangluo/micropython,micropython/micropython-esp32,TDAbboud/micropython,supergis/micropython,selste/micropython,oopy/micropython,ernesto-g/micropython,hosaka/micropython,tuc-osg/micropython,ganshun666/micropython,supergis/micropython,oopy/micropython,heisewangluo/micropython,emfcamp/micropython,infinnovation/micropython,suda/micropython,MrSurly/micropython,ChuckM/micropython,tdautc19841202/micropython,drrk/micropython,chrisdearman/micropython,mhoffma/micropython,mpalomer/micropython,pozetroninc/micropython,chrisdearman/micropython,matthewelse/micropython,jlillest/micropython,MrSurly/micropython-esp32,Vogtinator/micropython,adafruit/circuitpython,mhoffma/micropython,ceramos/micropython,jmarcelino/pycom-micropython,tralamazza/micropython,turbinenreiter/micropython,TDAbboud/micropython,praemdonck/micropython,aethaniel/micropython,martinribelotta/micropython,xyb/micropython,feilongfl/micropython,vriera/micropython,mhoffma/micropython,kostyll/micropython,ruffy91/micropython,swegener/micropython,adamkh/micropython,blmorris/micropython,cnoviello/micropython,xuxiaoxin/micropython,selste/micropython,ruffy91/micropython,feilongfl/micropython,KISSMonX/micropython,neilh10/micropython,adamkh/micropython,Timmenem/micropython,paul-xxx/micropython,xyb/micropython,hiway/micropython,noahchense/micropython,slzatz/micropython,pfalcon/micropython,warner83/micropython,warner83/micropython,misterdanb/micropython,aethaniel/micropython,firstval/micropython,utopiaprince/micropython,tuc-osg/micropython,ganshun666/micropython,feilongfl/micropython,dhylands/micropython,mpalomer/micropython,tuc-osg/micropython,ryannathans/micropython,deshipu/micropython,blazewicz/micropython,torwag/micropython,xhat/micropython,micropython/micropython-esp32,kostyll/micropython,dhylands/micropython,puuu/micropython,lbattraw/micropython,redbear/micropython,warner83/micropython,ernesto-g/micropython,jimkmc/micropython,alex-robbins/micropython,tuc-osg/micropython,swegener/micropython,danicampora/micropython,suda/micropython,Timmenem/micropython,skybird6672/micropython,xyb/micropython,pozetroninc/micropython,EcmaXp/micropython,Peetz0r/micropython-esp32,bvernoux/micropython,matthewelse/micropython,bvernoux/micropython,ahotam/micropython,stonegithubs/micropython,puuu/micropython,blmorris/micropython,rubencabrera/micropython,alex-march/micropython,alex-robbins/micropython,vriera/micropython,jlillest/micropython,dmazzella/micropython,henriknelson/micropython,SHA2017-badge/micropython-esp32,skybird6672/micropython,kerneltask/micropython,selste/micropython,danicampora/micropython,infinnovation/micropython,TDAbboud/micropython,ceramos/micropython,adafruit/micropython,HenrikSolver/micropython,lowRISC/micropython,cwyark/micropython,alex-march/micropython,orionrobots/micropython,orionrobots/micropython,rubencabrera/micropython,martinribelotta/micropython,noahwilliamsson/micropython,ganshun666/micropython,deshipu/micropython,ruffy91/micropython,henriknelson/micropython,misterdanb/micropython,kostyll/micropython,AriZuu/micropython,dmazzella/micropython,drrk/micropython,Timmenem/micropython,warner83/micropython,ryannathans/micropython,aethaniel/micropython,omtinez/micropython,jlillest/micropython,MrSurly/micropython-esp32,redbear/micropython,ceramos/micropython,oopy/micropython,omtinez/micropython,alex-robbins/micropython,swegener/micropython,ChuckM/micropython,MrSurly/micropython-esp32,utopiaprince/micropython,hosaka/micropython,blmorris/micropython,hiway/micropython,henriknelson/micropython,AriZuu/micropython,SungEun-Steve-Kim/test-mp,SungEun-Steve-Kim/test-mp,trezor/micropython,mianos/micropython,neilh10/micropython,selste/micropython,orionrobots/micropython,xuxiaoxin/micropython,KISSMonX/micropython,swegener/micropython,supergis/micropython,noahchense/micropython,Peetz0r/micropython-esp32,ryannathans/micropython,ahotam/micropython,chrisdearman/micropython,matthewelse/micropython,emfcamp/micropython,noahwilliamsson/micropython,torwag/micropython,jmarcelino/pycom-micropython,MrSurly/micropython-esp32,deshipu/micropython,deshipu/micropython,methoxid/micropystat,MrSurly/micropython,cloudformdesign/micropython,noahwilliamsson/micropython,bvernoux/micropython,trezor/micropython,xhat/micropython,Peetz0r/micropython-esp32,galenhz/micropython,torwag/micropython,KISSMonX/micropython,lowRISC/micropython,tralamazza/micropython,lbattraw/micropython,utopiaprince/micropython,praemdonck/micropython,dhylands/micropython,feilongfl/micropython,vitiral/micropython,puuu/micropython,ruffy91/micropython,jimkmc/micropython,ryannathans/micropython,firstval/micropython,Peetz0r/micropython-esp32,cloudformdesign/micropython,mianos/micropython,HenrikSolver/micropython,slzatz/micropython,tobbad/micropython,pfalcon/micropython,toolmacher/micropython,redbear/micropython,noahchense/micropython,cloudformdesign/micropython,vitiral/micropython,chrisdearman/micropython,micropython/micropython-esp32,orionrobots/micropython,paul-xxx/micropython,matthewelse/micropython,alex-robbins/micropython,slzatz/micropython,cnoviello/micropython,martinribelotta/micropython,tralamazza/micropython,danicampora/micropython,dinau/micropython,xhat/micropython,galenhz/micropython,adafruit/circuitpython,dxxb/micropython,mgyenik/micropython,AriZuu/micropython,cnoviello/micropython,dhylands/micropython,xuxiaoxin/micropython,trezor/micropython,tobbad/micropython,noahwilliamsson/micropython,blmorris/micropython,stonegithubs/micropython,Timmenem/micropython,SungEun-Steve-Kim/test-mp,hosaka/micropython,misterdanb/micropython,bvernoux/micropython,tdautc19841202/micropython,chrisdearman/micropython,mgyenik/micropython,pfalcon/micropython,PappaPeppar/micropython,pramasoul/micropython,infinnovation/micropython,infinnovation/micropython,methoxid/micropystat,skybird6672/micropython,noahchense/micropython,toolmacher/micropython,tobbad/micropython,dxxb/micropython,cloudformdesign/micropython,EcmaXp/micropython,omtinez/micropython,skybird6672/micropython,blazewicz/micropython,MrSurly/micropython,cwyark/micropython,mhoffma/micropython,SHA2017-badge/micropython-esp32,MrSurly/micropython,pozetroninc/micropython,matthewelse/micropython,alex-march/micropython,hosaka/micropython,xuxiaoxin/micropython,ernesto-g/micropython,dinau/micropython,tdautc19841202/micropython,adafruit/circuitpython,deshipu/micropython,jmarcelino/pycom-micropython,tuc-osg/micropython,supergis/micropython,mianos/micropython,ernesto-g/micropython,suda/micropython,mianos/micropython,dinau/micropython,rubencabrera/micropython,ceramos/micropython,ericsnowcurrently/micropython,redbear/micropython,xhat/micropython,ganshun666/micropython,torwag/micropython,cloudformdesign/micropython,methoxid/micropystat,PappaPeppar/micropython,KISSMonX/micropython,redbear/micropython,ericsnowcurrently/micropython,lbattraw/micropython,Vogtinator/micropython,turbinenreiter/micropython,omtinez/micropython,stonegithubs/micropython,PappaPeppar/micropython,TDAbboud/micropython,martinribelotta/micropython,ericsnowcurrently/micropython,mpalomer/micropython,dxxb/micropython,adafruit/circuitpython,AriZuu/micropython,methoxid/micropystat,jlillest/micropython,praemdonck/micropython,firstval/micropython,methoxid/micropystat