Commit graph

6 commits

Author SHA1 Message Date
Baruch Even
a83769f44d Fix use of wrong offset in buffer
The header of packing is a single byte and nothing was written to the
first byte anyway.
2014-08-06 22:28:24 +03:00
Baruch Even
24ec009d67 Use constants where possible
The hdr variable gets the same constants as value but it is easier to
understand that the constants are used than the hdr which needs to be
traced to the value it received.
2014-08-06 22:28:24 +03:00
Baruch Even
a46581a35e Move initialization closer to use
Should make it a bit more readable, the variable is used before that
case as well but doesn't require the zero initialization in that case.
2014-08-06 22:28:24 +03:00
James McKaskill
f99af86cb3 Move capn_init_* all into capn-malloc.c with a common create and free function 2013-05-08 22:35:52 -04:00
James McKaskill
3f29732c69 Add capn_init_(fp|mem) to read a stream from file/memory
Packed form still to be tested
2013-05-07 22:48:46 -04:00
James McKaskill
12d72511b1 Add capn_(inflate|deflate) for converting to/from the packed form 2013-05-06 01:15:24 -04:00