Paul Sokolovsky
5d2499c638
Add "buffer management" and "shrink" API calls to vstr.
...
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()).
2014-01-13 23:31:06 +02:00
..
2014-01-06 13:51:53 -08:00
2014-01-06 13:51:53 -08:00
2014-01-07 23:06:46 +00:00
2014-01-06 13:51:53 -08:00
2014-01-11 09:37:41 +00:00
2014-01-06 13:51:53 -08:00
2014-01-13 19:39:01 +00:00
2014-01-13 19:39:01 +00:00
2014-01-13 19:39:01 +00:00
2014-01-12 12:35:08 +00:00
2014-01-06 13:51:53 -08:00
2014-01-11 00:58:59 +00:00
2014-01-11 09:37:41 +00:00
2013-12-21 18:17:45 +00:00
2014-01-11 09:47:06 +00:00
2014-01-06 13:51:53 -08:00
2014-01-11 09:47:06 +00:00
2014-01-12 00:20:49 +02:00
2014-01-12 22:04:20 +02:00
2013-10-23 20:20:17 +01:00
2014-01-04 18:44:46 +00:00
2014-01-13 23:31:06 +02:00
2014-01-12 13:55:24 +00:00
2014-01-08 15:28:26 +00:00
2014-01-08 15:28:26 +00:00
2014-01-08 15:28:26 +00:00
2014-01-03 19:03:11 +02:00
2014-01-12 19:16:59 +00:00
2014-01-12 19:16:59 +00:00
2014-01-13 23:31:06 +02:00
2014-01-13 19:39:01 +00:00
2014-01-04 15:57:35 +00:00
2014-01-09 13:55:55 -08:00
2013-10-23 20:20:17 +01:00
2013-12-30 03:38:32 +02:00
2014-01-04 20:27:13 +01:00
2013-12-30 03:38:32 +02:00
2014-01-13 22:41:16 +02:00
2014-01-12 22:04:21 +02:00
2014-01-08 18:11:23 +00:00
2014-01-07 23:06:46 +00:00
2014-01-07 23:06:46 +00:00
2014-01-07 23:06:46 +00:00
2014-01-07 23:06:46 +00:00
2014-01-11 19:22:29 +00:00
2014-01-08 18:11:23 +00:00
2014-01-11 00:58:59 +00:00
2014-01-13 19:50:05 +00:00
2014-01-07 23:06:46 +00:00
2014-01-13 22:36:49 +02:00
2014-01-13 22:36:49 +02:00
2014-01-12 03:34:04 +02:00
2014-01-09 20:57:50 +00:00
2014-01-07 23:06:46 +00:00
2014-01-07 23:06:46 +00:00
2014-01-12 23:37:45 +00:00
2014-01-07 23:06:46 +00:00
2014-01-13 19:50:05 +00:00
2014-01-09 21:43:51 +00:00
2014-01-11 19:22:29 +00:00
2014-01-12 22:04:21 +02:00
2013-12-21 18:17:45 +00:00
2014-01-09 20:57:50 +00:00
2014-01-05 12:08:55 -08:00
2014-01-11 00:12:06 +02:00
2014-01-07 23:06:46 +00:00
2014-01-11 09:47:06 +00:00
2014-01-13 19:50:05 +00:00
2014-01-13 19:50:05 +00:00
2014-01-06 13:51:53 -08:00
2014-01-06 13:51:53 -08:00
2014-01-11 00:58:59 +00:00
2014-01-08 18:11:23 +00:00
2014-01-08 17:38:38 +02:00
2014-01-06 13:51:53 -08:00
2014-01-11 09:37:41 +00:00
2014-01-13 23:31:06 +02:00