buffer_handle: Remember that we closed the FD once the file is buffered.
[Rockbox-MoB.git] / buffer-example.txt
blob68a419773ce96a6aef33d6486fb1c4feee1c2b09
1  -- | -- | -- | -- | -- | -- | -- | - buffer is empty
2  AM |*A1*| A2 | A3 | A4 | A5 | A6 | - buffer fills, metadata (AM) first.
3  AM | A1 | A2 |*A3*| A4 | A5 | A6 | - A1 and A2 are read.
4  -- | -- | AM | A3 |*A4*| A5 | A6 | - A1 and A2 are freed, then AM is moved.
5  A7 | A8 | -- | -- | AM |*A5*| A6 | - A3 and A4 are freed, then AM is moved, then A7 and A8 are buffered.
6  A7 | A8 | BM | B1 | AM | A5 |*A6*| - BM and B1 are buffered while A5 is read.
7 *A7*| A8 | BM | B1 | B2 | B3 | AM | - A5 and A6 are freed, then AM is moved, then B2 and B3 are buffered.