-
Notifications
You must be signed in to change notification settings - Fork 185
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make
CodedBufferWriter.writeRawByte
argument type more accurate (#891)
`writeRawBytes` adds bytes to the output and it will only be fast when the argument is `Uint8List`. Since all the users already pass `Uint8List`, update the argument type. This allows simplifyping `_copyInto`. Because it has only one call site, we simplify it and inline it in the call site. cl/576427817
- Loading branch information
Showing
3 changed files
with
16 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters