]> mj.ucw.cz Git - libucw.git/commit
obj_read_bucket() now gets the bucket length as a parameter, because
authorMartin Mares <mj@ucw.cz>
Sun, 27 Jun 2004 14:10:47 +0000 (14:10 +0000)
committerMartin Mares <mj@ucw.cz>
Sun, 27 Jun 2004 14:10:47 +0000 (14:10 +0000)
commit1aa9512b50adeef4a04577ecf52d8ecf6b29c2d0
treec1396ea071d84023e63aafa5d44d696f91dcd2e1
parentd6279d601cfb3f86e0bbe3fb78b4daa9af824bf3
obj_read_bucket() now gets the bucket length as a parameter, because
in many cases, the fastbuf continues after the end of the bucket.

If a V30 bucket ends with a NUL byte, eat that byte as well.

Also introduced obj_attr_to_bucket{,_num}() -- these functions take
a single attribute and encode it using the specified bucket type
for inclusion at the beginning of the bucket header. These functions
probably belong to obj2buck instead, but currently there is no such
file, so I'm leaving the moving to you.
lib/buck2obj.c
lib/buck2obj.h