Merge pull request #13831 from unknownbrackets/debugger

Debugger: Tweaks to memory read/write APIs
This commit is contained in:
Henrik Rydgård authored and GitHub committed 2020-12-29 10:51:02 +01:00
commit c5d90a7e50
7 files changed
+199 -19

No files matched your search

+6
View File
@@ -164,6 +164,12 @@ bool InputSink::Skip(size_t bytes) {
return true;
}
void InputSink::Discard() {
read_ = 0;
write_ = 0;
valid_ = 0;
}
void InputSink::Fill() {
// Avoid small reads if possible.
if (BUFFER_SIZE - valid_ > PRESSURE) {