DescriptionMakes the BattOrConnection read messages instead of bytes
This was quickly going to become a problem as we implemented
StopTracing. When the BattOr finishes tracing and starts streaming back
the samples that it recorded, it sends back frames with varying message
lengths.
With this change, we can say "give me the next message up to 50kB"
rather than having to specify an exact number of bytes that we expect.
It also gets rid of escape byte counting, which was awkward and
error-prone anyway.
BUG=542837
Committed: https://crrev.com/19bf12bc8a89b38e1bcdd2a767e722209903d738
Cr-Commit-Position: refs/heads/master@{#368091}
Patch Set 1 : #
Total comments: 4
Patch Set 2 : Code review #
Messages
Total messages: 21 (12 generated)
|