Added class DrivenEngine (no implementation yet)

This commit is contained in:
2021-09-30 13:37:50 -04:00
parent 6490db43fc
commit 73f6e8692a
5 changed files with 348 additions and 0 deletions

View File

@@ -45,6 +45,10 @@ int64_t StreamBuffer::fill() const {
return write_cursor_ - read_cursor_;
}
const char *StreamBuffer::data() const {
return read_cursor_;
}
bool StreamBuffer::layout_is(int64_t a, int64_t b, int64_t c) {
if (read_cursor_ - buf_lo_ != a) return false;
if (write_cursor_ - read_cursor_ != b) return false;