Skip to content

Conversation

@slaff
Copy link
Contributor

@slaff slaff commented Jun 25, 2021

No description provided.

@slaff slaff added this to the 4.4.0 milestone Jun 25, 2021
@slaff slaff force-pushed the feature/tcpclient-send-stream branch from 0930a8c to 1385f91 Compare June 25, 2021 15:59
@slaff slaff force-pushed the feature/tcpclient-send-stream branch from 1385f91 to 048dcae Compare June 25, 2021 16:05
setBuffer(new MemoryDataStream());
if(buffer == nullptr) {
return false;
auto memoryStream = dynamic_cast<MemoryDataStream*>(stream);
Copy link
Contributor

Choose a reason for hiding this comment

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

dynamic_cast will require RTTI and, if enabled, would add overhead to every use of Stream so getStreamType() is preferable here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

so getStreamType() is preferable here.

Thank you @mikee47. I will do exactly as suggested. Hope to find some time today to submit the new version of the code.

@slaff slaff merged commit 5da5592 into SmingHub:develop Jun 29, 2021
@slaff slaff removed the 3 - Review label Jun 29, 2021
@slaff slaff mentioned this pull request Jun 29, 2021
5 tasks
@slaff slaff deleted the feature/tcpclient-send-stream branch July 9, 2021 09:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants