mirror of
https://github.com/dart-lang/sdk
synced 2024-09-16 01:21:07 +00:00
daa400bada
The list being viewed can sometimes itself be a sublist view, but the default view() constructor doesn't take that into account, and instead the caller needs to be aware of the case. This change makes all such uses use offsetInBytes, even in cases that's not needed, so it's trivial to audit that it's always used correctly. In the cases it's not needed, it just gets the value 0 and it's a no-operation. In the cases it's needed, it fixes a bug, such as in _WebSocketProtocolTransformer.add(). Closes #39589 Change-Id: I6e9bd5510f48ce378bdec2c64b56fe789dfb27ac Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/127165 Reviewed-by: Lasse R.H. Nielsen <lrn@google.com> Commit-Queue: Jonas Termansen <sortie@google.com> |
||
---|---|---|
.. | ||
bin | ||
lib | ||
api_readme.md | ||
BUILD.gn |