Matt Stancliff 51152b12ed Add ziplistMerge()
This started out as #2158 by sunheehnus, but I kept rewriting it
until I could understand things more easily and get a few more
correctness guarantees out of the readability flow.

The original commit created and returned a new ziplist with the contents of
both input ziplists, but I prefer to grow one of the input ziplists
and destroy the other one.

So, instead of malloc+copy as in #2158, the merge now reallocs one of
the existing ziplists and copies the other ziplist into the new space.

Also added merge test cases to ziplistTest()
2015-01-02 11:16:08 -05:00
..
2012-04-13 17:52:33 -07:00
2014-09-29 06:49:07 -04:00
2014-08-08 10:43:54 +02:00
2015-01-02 11:16:08 -05:00
2013-01-19 10:59:44 +01:00
2014-12-23 09:31:02 -05:00
2014-12-11 10:45:22 -05:00
2014-12-12 12:02:39 +09:00
2014-12-23 09:31:03 -05:00
2014-09-29 06:49:08 -04:00
2014-12-14 12:25:42 +02:00
2015-01-02 11:16:08 -05:00
2014-07-02 17:04:14 +02:00
2014-08-08 14:54:02 +02:00
2014-12-23 09:31:02 -05:00
2015-01-02 11:16:08 -05:00
2015-01-02 11:16:08 -05:00
2015-01-02 11:16:08 -05:00
2014-08-08 10:05:32 +02:00
2015-01-02 11:16:08 -05:00
2014-08-08 14:54:02 +02:00
2014-12-23 09:31:03 -05:00
2015-01-02 11:16:08 -05:00
2015-01-02 11:16:08 -05:00
2014-10-09 11:51:30 -04:00
2015-01-02 11:16:08 -05:00
2014-07-02 16:31:22 +02:00
2015-01-02 11:16:08 -05:00
2014-12-21 16:13:45 +02:00
2014-12-23 09:31:03 -05:00
2011-07-06 15:22:00 +02:00
2015-01-02 11:16:08 -05:00
2015-01-02 11:16:08 -05:00