-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Factor out a method "GetMatchedStream".
This simplifies the logic, but on the first call, this slightly slows down the reading (because if we want to read, we first call size to provoke the matching, which reads at least some part of the ciphertext. afterwards we read ciphertext from the start again). This also fixes the bug that calling size() would fail if PRead isn't called before this. PiperOrigin-RevId: 584556418 Change-Id: I47957a63c45b4e9a293b6e5ec70abf462bded9b9
- Loading branch information
1 parent
fed9289
commit de6dcf9
Showing
5 changed files
with
91 additions
and
41 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
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