BAdapterIO: Refine size inheritance

* Wait evaluation is done considering both position
and buffer size.
* Set back position to 0 after seeking.
* Simplify EvaluatePosition to take advantage of inheritance.
* Use back position to determine the current size of the buffer.
* Add more debug tracing.
* Other minor fixes.
This commit is contained in:
Dario Casalinuovo
2016-07-02 21:19:27 +02:00
parent dc0aa64fb0
commit 3ad928de3f
2 changed files with 36 additions and 38 deletions
+1 -1
View File
@@ -70,7 +70,7 @@ protected:
ssize_t BackWrite(const void* buffer, size_t size);
private:
status_t _EvaluateWait(off_t position);
status_t _EvaluateWait(off_t position, off_t size);
int32 fFlags;