Skip to content

Conversation

d-a-v
Copy link
Collaborator

@d-a-v d-a-v commented Mar 23, 2021

Should fix #7928

In the following code

 //if (_byteAddressable) // return _peekPointer < _size ? _buffer[_peekPointer++] : -1; return _peekPointer < _size ? pgm_read_byte(&_buffer[_peekPointer++]) : -1; 

I wonder if it is worth uncommenting the two first lines, which are valid.

@earlephilhower
Copy link
Collaborator

I wonder if it is worth uncommenting the two first lines, which are valid.

I'd say no. Code size increase and pgm_read_byte is only 4 insns extra, anyway, so performance vs. the virtual call overhead should be nothing.

@d-a-v d-a-v changed the title StreamConstPtr: fix doc + reading flash space byte-by-byte Stream::Send fixes: doc + StreamConstPtr byte-by-byte + missing SSL availableForWrite Mar 25, 2021
Copy link
Collaborator

@earlephilhower earlephilhower left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@d-a-v d-a-v merged commit c1118df into esp8266:master Mar 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants