1. 25 Jan, 2014 3 commits
  2. 24 Jan, 2014 4 commits
  3. 23 Jan, 2014 7 commits
  4. 22 Jan, 2014 6 commits
  5. 21 Jan, 2014 6 commits
  6. 19 Jan, 2014 4 commits
  7. 18 Jan, 2014 1 commit
  8. 16 Jan, 2014 1 commit
  9. 15 Jan, 2014 3 commits
  10. 14 Jan, 2014 4 commits
  11. 13 Jan, 2014 1 commit
    • Paul Sokolovsky's avatar
      Add "buffer management" and "shrink" API calls to vstr. · 5d2499c6
      Paul Sokolovsky authored
      vstr is initially intended to deal with arbitrary-length strings. By
      providing a bit lower-level API calls, it will be also useful to deal
      with arbitrary-length I/O buffers (the difference from strings is that
      buffers are filled from "outside", via I/O).
      
      Another issue, especially aggravated by I/O buffer use, is alloc size
      vs actual size length. If allocated 1Mb for buffer, but actually
      read 1 byte, we don't want to keep rest of 1Mb be locked by this I/O
      result, but rather return it to heap ASAP ("shrink" buffer before passing
      it to qstr_from_str_take()).
      5d2499c6