Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass Uint8List to Datagram #382

Merged
merged 1 commit into from
Jun 11, 2019
Merged

Conversation

tvolkert
Copy link
Contributor

This is in preparation for Datagram requiring a
Uint8List passed to its constructor. This is a
forward-compatible change.

dart-lang/sdk#36900
#381

This is in preparation for Datagram requiring a
Uint8List passed to its constructor. This is a
forward-compatible change.

dart-lang/sdk#36900
dart-lang#381
Copy link
Member

@athomas athomas left a comment

Choose a reason for hiding this comment

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

We could get rid of some of the new keywords here, but maybe that should go into a separate cleanup of all the tests.

@tvolkert
Copy link
Contributor Author

maybe that should go into a separate cleanup of all the tests.

Yeah a separate change makes sense to me.

@tvolkert
Copy link
Contributor Author

@sgrekhov can you merge this for me?

@tvolkert
Copy link
Contributor Author

(or @athomas if you have commit access on this repo too 🙂 )

@athomas athomas merged commit 6ccebbf into dart-lang:master Jun 11, 2019
@tvolkert tvolkert deleted the Datagram_bytes branch June 12, 2019 15:58
tvolkert added a commit to tvolkert/co19 that referenced this pull request Jun 12, 2019
There were a few places where `.cast<List<int>>()` calls were
missed in dart-lang#384 and dart-lang#385, and likewise for `Datagram.data` in dart-lang#382.

Note that I had to change one of the tests of `Datagram.data`, since
the existing test was setting invalid values as the data (signed
integers or integers that didn't fit in 8-bytes).

dart-lang/sdk#36900
dart-lang#381
dart-lang#383
athomas pushed a commit that referenced this pull request Jun 12, 2019
There were a few places where `.cast<List<int>>()` calls were
missed in #384 and #385, and likewise for `Datagram.data` in #382.

Note that I had to change one of the tests of `Datagram.data`, since
the existing test was setting invalid values as the data (signed
integers or integers that didn't fit in 8-bytes).

dart-lang/sdk#36900
#381
#383
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants