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

Document that writeAsBytes truncates values beyond 0..255 #53782

Closed
wants to merge 1 commit into from

Conversation

eseidel
Copy link
Contributor

@eseidel eseidel commented Oct 17, 2023

I just ran into this myself, no sense in anyone else having to hit this issue again.


  • I’ve reviewed the contributor guide and applied the relevant portions to this PR.
Contribution guidelines:
  • See our contributor guide for general expectations for PRs.
  • Larger or significant changes should be discussed in an issue before creating a PR.
  • Contributions to our repos should follow the Dart style guide and use dart format.

Note that this repository uses Gerrit for code reviews. Your pull request will be automatically converted into a Gerrit CL and a link to the CL written into this PR. The review will happen on Gerrit but you can also push additional commits to this PR to update the code review.

I just ran into this myself, no sense in anyone else having to
hit this issue again.
@copybara-service
Copy link

Thank you for your contribution! This project uses Gerrit for code reviews. Your pull request has automatically been converted into a code review at:

https://dart-review.googlesource.com/c/sdk/+/330944

Please wait for a developer to review your code review at the above link; you can speed up the review if you sign into Gerrit and manually add a reviewer that has recently worked on the relevant code. See CONTRIBUTING.md to learn how to upload changes to Gerrit directly.

Additional commits pushed to this PR will update both the PR and the corresponding Gerrit CL. After the review is complete on the CL, your reviewer will merge the CL (automatically closing this PR).

@eseidel
Copy link
Contributor Author

eseidel commented Oct 17, 2023

Potentially could also point to https://api.flutter.dev/flutter/dart-typed_data/ByteData-class.html for handling multi-byte values.

@eseidel
Copy link
Contributor Author

eseidel commented Oct 17, 2023

The last sentence could be skipped or converted to hex, e.g. For example, 256 is treated as x00, 257 as x01, -1 as xFF, etc.

@mraleph
Copy link
Member

mraleph commented Oct 19, 2023

(review comments from @lrhn are available in Gerrit)

@eseidel
Copy link
Contributor Author

eseidel commented Nov 3, 2023

More trouble than it's worth to finish, closing.

@eseidel eseidel closed this Nov 3, 2023
@brianquinlan
Copy link
Contributor

I'll land this for you sometime next week.

@eseidel
Copy link
Contributor Author

eseidel commented Nov 4, 2023 via email

copybara-service bot pushed a commit that referenced this pull request Nov 11, 2023
Closes #53782

GitOrigin-RevId: 5453268
Change-Id: I7804cbe65c93bc34f56db6da7bc68aa1ef4e9303
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/330944
Commit-Queue: Brian Quinlan <bquinlan@google.com>
Reviewed-by: Lasse Nielsen <lrn@google.com>
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.

None yet

3 participants