Simon Tatham
a990738aca
Use the BinarySink system for conf serialisation.
...
Now instead of iterating through conf twice in separate functions,
once to count up the size of the serialised data and once to write it
out, I just go through once and dump it all in a strbuf.
(Of course, I could still do a two-pass count-then-allocate approach
easily enough in this system; nothing would stop me writing a
BinarySink implementation that didn't actually store any data and just
counted its size, and then I could choose at each call site whether I
preferred to do it that way.)
2018-05-25 14:36:16 +01:00
..
2014-02-22 18:01:32 +00:00
2018-01-30 19:22:45 +00:00
2018-05-13 23:05:46 +01:00
2015-09-01 19:12:19 +01:00
2017-11-26 11:36:00 +00:00
2015-08-24 19:34:23 +01:00
2017-11-26 20:03:12 +00:00
2018-05-09 09:21:27 +01:00
2018-05-09 09:21:27 +01:00
2018-05-09 09:21:27 +01:00
2017-02-27 19:58:39 +00:00
2018-05-25 14:36:16 +01:00
2018-05-09 09:21:27 +01:00
2015-08-31 15:45:43 +01:00
2018-05-19 07:38:22 +01:00
2017-12-20 10:04:02 +00:00
2017-11-26 11:45:48 +00:00
2016-03-23 22:22:48 +00:00
2017-11-26 11:45:48 +00:00
2016-03-23 22:22:48 +00:00
2018-05-25 14:12:44 +01:00
2011-07-14 18:52:21 +00:00
2017-11-26 11:32:34 +00:00
2011-07-14 18:52:21 +00:00
2018-05-18 07:22:56 +01:00
2016-03-30 08:30:40 +01:00
2018-04-26 07:21:16 +01:00
2018-05-25 14:36:16 +01:00
2017-11-26 19:59:27 +00:00
2017-02-15 19:32:42 +00:00
2009-09-16 22:28:20 +00:00
2015-05-18 14:03:10 +01:00
2018-05-25 14:08:24 +01:00
2018-05-18 07:22:57 +01:00
2010-02-20 11:21:25 +00:00
2017-05-14 16:34:48 +01:00
2017-12-07 20:13:33 +00:00
2018-05-09 09:21:27 +01:00
2017-12-07 20:13:33 +00:00
2017-05-14 16:34:48 +01:00
2017-05-14 16:34:48 +01:00
2018-05-24 16:54:16 +01:00
2018-05-25 14:36:16 +01:00
2004-12-31 13:02:46 +00:00
2017-02-14 23:25:25 +00:00
2015-05-15 12:47:44 +01:00
2016-03-20 18:30:03 +00:00
2018-05-09 09:21:27 +01:00
2003-04-27 11:10:48 +00:00
2007-01-07 10:17:12 +00:00
2007-01-07 10:17:12 +00:00
2007-01-07 10:17:12 +00:00
2007-01-07 10:17:12 +00:00