DescriptionAdd serial bulk reads.
As a curious shortcut, we originally implemented the serial read function to
return exactly one byte at a time. This might have been back when we didn't
yet have ArrayBuffer support, so it actually was easier to deal with a byte
rather than a buffer. Now we read the requested number of bytes or a smaller
number to avoid blocking.
BUG=136897
TEST=changed existing tests to use new API, and replaced the test byte with a test sequence.
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=149718
Patch Set 1 : #
Total comments: 2
Patch Set 2 : Replaced pretend ring buffer with std::deque<>. #
Total comments: 2
Patch Set 3 : Review nits from Peng. #
Total comments: 1
Patch Set 4 : asargent review changes. #Patch Set 5 : Merge help. #Messages
Total messages: 14 (0 generated)
|