]> mj.ucw.cz Git - libucw.git/blobdiff - lib/fastbuf.h
When writing, the data needn't start at the beginning of the buffer.
[libucw.git] / lib / fastbuf.h
index 4f6c5e66f8ab8fa3e386f0d6a796d0ba67e80c35..1f502ce5d733a7ac85d95e7abbd20be2446a1a02 100644 (file)
  *
  *  When writing:
  *
- *  +----------------+---------------------------+
- *  | written data   | free space                |
- *  +----------------+---------------------------+
- *  ^                 ^                           ^
- *  buffer=bstop      bptr                        bufend
+ *  +--------+--------------+--------------------+
+ *  | unused | written data | free space         |
+ *  +--------+--------------+--------------------+
+ *  ^         ^              ^                    ^
+ *  buffer    bstop          bptr                 bufend
  *
  *  Dirty tricks:
  *