X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fber_len.c;h=4075ea67e0e9166811f4035ea6650921e40aa0bb;hb=60a702f390f7e2addfdab79f2328db3ba2897c8b;hp=bb4c08af9cdf0190a48b4d7ef043258c0ee4e6d1;hpb=c6e47cbbff56f39f6d81b079ebaeac41d793d4d9;p=yaz-moved-to-github.git diff --git a/src/ber_len.c b/src/ber_len.c index bb4c08a..4075ea6 100644 --- a/src/ber_len.c +++ b/src/ber_len.c @@ -1,10 +1,18 @@ /* - * Copyright (C) 1995-2003, Index Data. + * Copyright (C) 1995-2005, Index Data ApS * See the file LICENSE for details. - * Sebastian Hammer, Adam Dickmeiss * - * $Id: ber_len.c,v 1.1 2003-10-27 12:21:30 adam Exp $ + * $Id: ber_len.c,v 1.3 2005-01-15 19:47:11 adam Exp $ */ + +/** + * \file ber_len.c + * \brief Implements BER length octet encoding and decoding + * + * This source file implements BER encoding and decoding of + * the length octets. + */ + #if HAVE_CONFIG_H #include #endif @@ -12,7 +20,8 @@ #include #include "odr-priv.h" -/* +/** + * ber_enclen: * Encode BER length octets. If exact, lenlen is the exact desired * encoding size, else, lenlen is the max available space. Len < 0 = * Indefinite encoding. @@ -78,7 +87,8 @@ int ber_enclen(ODR o, int len, int lenlen, int exact) return odr_tell(o) - lenpos; } -/* +/** + * ber_declen: * Decode BER length octets. Returns * > 0 : number of bytes read * -1 : not enough room to read bytes within max bytes