]> mj.ucw.cz Git - libucw.git/commit
- buck2obj_alloc() initially allocates no buffers
authorRobert Spalek <robert@ucw.cz>
Fri, 25 Jun 2004 18:45:56 +0000 (18:45 +0000)
committerRobert Spalek <robert@ucw.cz>
Fri, 25 Jun 2004 18:45:56 +0000 (18:45 +0000)
commit588db76b04e7f92fedc50dca757917f5f0c90ad6
treec02d19750e10c221e948226edb7fd6989a125918
parent891ffffc2cdc248c13f8c6bd6bbc312a2dcd02d8
- buck2obj_alloc() initially allocates no buffers
- buck2obj_realloc() only stretches the main buffer (and not the lizard)
  + it is not exported anymore
- if lizard_decompress_safe() returns EFBIG, its buffer is shrinked

hence buck2obj.c allocates no memory if not needed.  the internal buffer is
allocated when the first non-compact bucket is encountered and lizard's
buffer is allocated when the first compressed bucket is encountered.
lib/buck2obj.c
lib/buck2obj.h